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