Exemple #1
0
 public void ResetPlayer()
 {
     if (m_cCharacterController)
     {
         m_cCharacterController.enabled = true;
     }
     m_bIsKicking      = false;
     m_bIsPushed       = false;
     m_bIsStunned      = false;
     m_cState          = CStates.OnFloor;
     m_aAnimator.speed = 1;
     Time.timeScale    = 1;
     if (TheAnimator)
     {
         TheAnimator.SetBool("IsSliding", false);
         TheAnimator.SetBool("IsRunning", false);
         TheAnimator.SetBool("IsStunned", false);
         TheAnimator.SetBool("IsPushing", false);
         TheAnimator.SetBool("IsDiveKick", false);
         TheAnimator.SetBool("IsDancing", false);
         TheAnimator.SetBool("IsWallGrab", false);
     }
 }