void Update() { animator.SetFloat("Vertical Velocity", controller.rigidbody2d.velocity.y); if (isInCombat && Time.time >= combatResetTime) { isInCombat = false; } playerStateName = playerState.GetType().Name; playerState.DoStateBehaviour(); playerState.Transitions(); }
void Update() { playerState.DoStateBehaviour(); playerState.Transitions(); }