public override string GetCoverAnim(E_CoverAnim type, E_CoverPose pose, E_CoverDirection direction) { switch (type) { case E_CoverAnim.Enter: return(pose == E_CoverPose.Stand ? "CoverStandEnter" : "CoverCrouchEnter"); case E_CoverAnim.Leave: return(pose == E_CoverPose.Stand ? "CoverStandLeave" : "CoverCrouchLeave"); case E_CoverAnim.AimStart: switch (direction) { case E_CoverDirection.Left: return(pose == E_CoverPose.Stand ? "CoverStandAimLeftStart" : "CoverCrouchAimLeftStart"); case E_CoverDirection.Right: return(pose == E_CoverPose.Stand ? "CoverStandAimRightStart" : "CoverCrouchAimRightStart"); default: return(pose == E_CoverPose.Stand ? "" : "CoverCrouchAimCenterStart"); } case E_CoverAnim.AimEnd: switch (direction) { case E_CoverDirection.Left: return(pose == E_CoverPose.Stand ? "CoverStandAimLeftBack" : "CoverCrouchAimLeftBack"); case E_CoverDirection.Right: return(pose == E_CoverPose.Stand ? "CoverStandAimRightBack" : "CoverCrouchAimRightBack"); default: return(pose == E_CoverPose.Stand ? "" : "CoverCrouchAimCenterBack"); } case E_CoverAnim.JumpOver: return("JumpOverToIdle"); case E_CoverAnim.JumpUp: return("CoverCrouchJumpUp"); case E_CoverAnim.LeaveLeft: return(pose == E_CoverPose.Stand ? "CoverStandLeftLeave" : "CoverCrouchLeftLeave"); case E_CoverAnim.LeaveRight: return(pose == E_CoverPose.Stand ? "CoverStandRightLeave" : "CoverCrouchRightLeave"); } throw new System.ArgumentOutOfRangeException(); }
public abstract string GetCoverAnim(E_CoverAnim type, E_CoverPose pose, E_CoverDirection direction);