public void ResetCharacterState() { // Cycling the gameobject on and off resets the animator. gameObject.SetActive(false); gameObject.SetActive(true); MovementMechanics.TranslateForcedMovement(Vector2.zero, Vector2.zero, 1); CommandInterpreter.ResetInterpreter(); Anim.SetInteger(Win_State, 0); gameObject.GetComponent <AnimationSpeedController>().RunAnimSpeedControllerSetup(); }
protected virtual void Update() { Anim.SetBool("IsCrouching", MovementMechanics.IsCrouching); MovementMechanics.UpdateVerticalVelocity(); }