protected override void OnUpdate() { stateMachine.Update(); if (Game.Match.State == MatchState.Playing) { this.OnHeroUpdate(); if (this.isSpellOnCooldown) { if (spellCooldownTimer.CheckAndTick(Time.deltaTime)) { isSpellOnCooldown = false; } } if (regenTimer.CheckAndTick(Time.deltaTime)) { this.stats.Mana.Value += this.stats.manaRegen; GainUltCharge(this.stats.ultimateChargeRate); } } }
protected override void OnUpdate() { stateMachine.Update(); }
public override void Update() { sm.Update(); }