Пример #1
0
    void Start()
    {
        _score          = 0;
        scoreLabel.text = _score.ToString();

        settingsPopup.Close();

        gameOverController = this.GetComponent <GameOverUIController>();
        gameOverController.disableView();
    }
 ///////////////////////////////////////////////
 /// MONOBEHAVIOR METHODS
 ///////////////////////////////////////////////
 void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
	void Awake ()
	{
		gameOverUI = GetComponentInChildren<GameOverUIController>();
		pausedScreenPanel.SetActive(false);
	}