IEnumerator TimeOver() { yield return(new WaitForSeconds(3)); TimersManager.SetTimer(this, 1f, 60, Timer); TimersManager.SetPaused(Timer, true); }
public void gameFinish() { GameManager.Instance.gameTrigger = false; TimersManager.SetPaused(timeCount, true); winPanel.SetActive(true); goblin.SetActive(false); }
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); }
public void ResetTimer() { TimersManager.SetTimer(this, 1f, 60, Timer); TimersManager.SetPaused(Timer, true); }
void Start() { TimersManager.SetTimer(this, 1f, 60, Timer); TimersManager.SetPaused(Timer, true); }