public static int GetAnimSpecialType(AnimSpecials i) { int r = 0; switch (i) { case AnimSpecials.runToStop: r = 11; break; case AnimSpecials.run: r = 10; break; case AnimSpecials.jump_idle: r = 21; break; case AnimSpecials.run_jump: r = 22; break; default: break; } return(r); }
public static int GetAnimSpecialType(AnimSpecials pSpecialAnim) { int InID = 0; switch (pSpecialAnim) { case AnimSpecials.E_RunToStop: InID = 11; break; case AnimSpecials.E_Run: InID = 10; break; case AnimSpecials.E_Jump_Idle: InID = 21; break; case AnimSpecials.E_Run_Jump: InID = 22; break; default: break; } return(InID); }
public void PlayAnimSpecial(AnimSpecials t, bool sptrue = true) { int n = Statics.GetAnimSpecialType(t); states.anim.SetBool(Statics.special, sptrue); states.anim.SetInteger(Statics.specialType, n); StartCoroutine(CloseSpecialOnAnim(0.4f)); }
public void PlayAnimSpecial(AnimSpecials pAnimSpecial, bool pIsSpecial = true) { int InType = GAMEVAR.GetAnimSpecialType(pAnimSpecial); mStateManager.mAnimator.SetBool(GAMEVAR.special, pIsSpecial); mStateManager.mAnimator.SetInteger(GAMEVAR.specialType, InType); StartCoroutine(CloseSpecialOnAnim(0.4f)); }
public static int GetAnimSpecialType(AnimSpecials i) { int r = 0; switch (i) { case AnimSpecials.runToStop: r = 11; break; default: break; } return(r); }