Ejemplo n.º 1
0
 private void AnimatorSettings()
 {
     _animator = new Animator(SceneObject as AnimatedSceneObject);
     _animator.AddAnimation(Idle, AnimationManager.Instance.GetAnimationByName(Idle));
     _animator.AddAnimation(Walk, AnimationManager.Instance.GetAnimationByName(Walk));
     _animator.AddAnimation(JumpUp, AnimationManager.Instance.GetAnimationByName(JumpUp));
     _animator.AddAnimation(JumpDown, AnimationManager.Instance.GetAnimationByName(JumpDown));
     _animator.AddRelation(JumpUp, JumpDown);
     _animator.AddRelation(JumpDown, Idle);
 }