Пример #1
0
    IEnumerator TimeOver()
    {
        yield return(new WaitForSeconds(3));

        TimersManager.SetTimer(this, 1f, 60, Timer);
        TimersManager.SetPaused(Timer, true);
    }
Пример #2
0
 public void gameFinish()
 {
     GameManager.Instance.gameTrigger = false;
     TimersManager.SetPaused(timeCount, true);
     winPanel.SetActive(true);
     goblin.SetActive(false);
 }
Пример #3
0
 public void timerSetting()
 {
     gameTrigger = true;
     foreach (var towers in  TowerManager.Instance.towers)
     {
         towers.shootOnce();
         towers.target = TowerManager.Instance.enemyGround.tileArr[Random.Range(0, 24)].transform;
     }
     activeCount = m_activeCount;
     UIManager.Instance.moveCountChange(m_activeCount);
     UIManager.Instance.timerCount = timerCount;
     TimersManager.SetLoopableTimer(this, 1f, UIManager.Instance.timeCount);
     TimersManager.SetPaused(UIManager.Instance.timeCount, false);
 }
Пример #4
0
 public void ResetTimer()
 {
     TimersManager.SetTimer(this, 1f, 60, Timer);
     TimersManager.SetPaused(Timer, true);
 }
Пример #5
0
 void Start()
 {
     TimersManager.SetTimer(this, 1f, 60, Timer);
     TimersManager.SetPaused(Timer, true);
 }