public IEnumerator PopBtn() { yield return(new WaitForSeconds(2)); startBtn.SetActive(true); AIBtn.SetActive(true); ExitBtn.SetActive(true); }
// Use this for initialization void Start() { Instance = this; Input.multiTouchEnabled = true; isStarted = false; isOver = true; isAI = false; startBtn.SetActive(true); AIBtn.SetActive(true); ExitBtn.SetActive(true); //Sound.Instance.playBg(); }
public void PushStartBtn() { Sound.Instance.stopBg(); Sound.Instance.stopWin(); isStarted = true; startBtn.SetActive(false); AIBtn.SetActive(false); ExitBtn.SetActive(false); Instantiate(counter); Sound.Instance.playCountdown(); BlueSide.Instance.Initial(); RedSide.Instance.Initial(); StartCoroutine(Initial()); }