예제 #1
0
파일: Actor.cs 프로젝트: atarng/JAMMM
        protected void changeAnimation(Animation newAnimation)
        {
            if (currentAnimation != null)
                currentAnimation.stop();

            newAnimation.stop();

            currentAnimation = newAnimation;

            currentAnimation.play();
        }