Пример #1
0
    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);
            }
        }
    }
Пример #2
0
 protected override void OnUpdate()
 {
     stateMachine.Update();
 }
Пример #3
0
 public override void Update()
 {
     sm.Update();
 }