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