Ejemplo n.º 1
0
        public Pat.Action GetSystemAction(SystemAnimationType type)
        {
            switch (type)
            {
            case SystemAnimationType.Stand:
                return(GetSystemAction_0_Stant());

            case SystemAnimationType.Run:
                return(GetSystemAction_1_Run());

            case SystemAnimationType.JumpUp:
                return(GetSystemAction_3_JumpUp());

            case SystemAnimationType.JumpFront:
                return(GetSystemAction_4_JumpFront());

            case SystemAnimationType.Fall:
                return(GetSystemAction_8_Fall());

            case SystemAnimationType.FallAttack:
                return(GetSystemAction_9_FallAttack());

            default:
                return(null);
            }
        }
Ejemplo n.º 2
0
 public void SetMotion(SystemAnimationType sys, int segment)
 {
     SetMotion(SystemAnimations.GetSystemAction(sys), segment);
 }