public override void Update(Vector2 OFFSET) { spawnTimer.UpdateTimer(); if (spawnTimer.Test()) { SpawnMob(); spawnTimer.ResetToZero(); } base.Update(OFFSET); }
public virtual void Update(Vector2 OFFSET, List <Unit> UNITS) { pos += direction * speed; timer.UpdateTimer(); if (timer.Test()) { done = true; } if (HitSomething(UNITS)) { done = true; } }