示例#1
0
 public virtual void SpawnEntity()
 {
     if (!timer.CheckTimeIsUp())
     {
         return;
     }
     timer.ResetTimer();
 }
示例#2
0
        private void SelectPattern()
        {
            if (!patternTimer.CheckTimeIsUp())
            {
                return;
            }

            selectedPattern = electedPatterns[Random.Range(0, electedPatterns.Length)];
            patternTimer.ResetTimer();
        }
示例#3
0
        public override void RunStateUpdate()
        {
            if (timer.CheckTimeIsUp())
            {
                DetermineAreaBoundaries();
                SelectNewPosition();
                timer.ResetTimer();
                interpolationValue = 0;
                return;
            }

            // keep timer ticking
            timer.TickTimer();
            TranslateToNewLocation();
        }