onPlayIdleUpAnimation method
void
onPlayIdleUpAnimation()
Implementation
void onPlayIdleUpAnimation() {
if (animation?.canIdleUp == true) {
animation?.play(SimpleAnimationEnum.idleUp);
} else {
if (lastDirectionHorizontal == Direction.left) {
animation?.play(SimpleAnimationEnum.idleLeft);
} else {
animation?.play(SimpleAnimationEnum.idleRight);
}
}
}