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); } }
public void SetMotion(SystemAnimationType sys, int segment) { SetMotion(SystemAnimations.GetSystemAction(sys), segment); }