playOther method
Method used to play specific animation registred in others
Implementation
void playOther(dynamic key, {bool? flipX, bool? flipY}) {
if (containOther(key) &&
(_currentKeyCustom != key || _checkFlipIsDiffrent(flipX, flipY))) {
if (!runToTheEndFastAnimation) {
_fastAnimation = null;
}
isFlipHorizontally = flipX ?? (isFlipHorizontally);
isFlipVertically = flipY ?? (isFlipVertically);
_current.animation = others[key];
_currentKeyCustom = key;
_currentType = SimpleAnimationEnum.custom;
}
}