public virtual void SpawnEntity() { if (!timer.CheckTimeIsUp()) { return; } timer.ResetTimer(); }
private void SelectPattern() { if (!patternTimer.CheckTimeIsUp()) { return; } selectedPattern = electedPatterns[Random.Range(0, electedPatterns.Length)]; patternTimer.ResetTimer(); }
public override void RunStateUpdate() { if (timer.CheckTimeIsUp()) { DetermineAreaBoundaries(); SelectNewPosition(); timer.ResetTimer(); interpolationValue = 0; return; } // keep timer ticking timer.TickTimer(); TranslateToNewLocation(); }