public void Update() { if (Player.Grounded && Player.Inputs.Action == DpadAction.Attack && Cooldown.IsFree()) { Cooldown.Start(); Player.State = PlayerState.ATTACK; } }
public void Update() { if (Cooldown.IsFree()) { Player.State = PlayerState.AFTER_ATTACK; } else { Cooldown.Update(); } }