Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
 protected virtual void Update()
 {
     Anim.SetBool("IsCrouching", MovementMechanics.IsCrouching);
     MovementMechanics.UpdateVerticalVelocity();
 }