public override void Tick() { if (timer.Progress()) { owner.ChangeState(new ApplyPosionState(base.owner)); } }
void FixedUpdate() { if (timer.Progress()) { textElement.text = ""; } }
public override void Tick() { if (timer.Progress()) { owner.ChangeState(new UpkeepState(base.owner)); } }
public override void Tick() { if (timer.Progress()) { if (commandParams.GetSkill() != null) { ExecuteSkill(); // Consume mana/energy UnitUtil.SubstractMana(commandParams.GetSubject(), commandParams.GetSkill()); } else if (commandParams.GetItem() != null) { ExecuteItem(); // Consume item UnitUtil.ConsumeItem(owner.GetInventory(), commandParams.GetItem()); } owner.ChangeState(new ApplyBurnState(base.owner)); } }