Esempio n. 1
0
 private void Start()
 {
     _infoPanel             = GameObject.FindGameObjectWithTag(InfoPanelTag).GetComponent <InfoPanelController>();
     _getReadyPanel         = _infoPanel.GetReadyPanel;
     _moles                 = GetControllers(GameObject.FindGameObjectsWithTag(MolesTag));
     _playTime              = BasicTimeSeconds;
     _infoPanel.TimerString = GetTimeString(_playTime);
     StartCoroutine(StartGamesTimers());
     StartCoroutine(IncreaseHard());
 }
 void Awake()
 {
     if (singletonInstance != null && singletonInstance != this)
     {
         Destroy(this);
         return;
     }
     else
     {
         singletonInstance = this;
     }
 }
Esempio n. 3
0
 void Awake()
 {
     singleton = this;
 }
 // METHODS
 void Awake()
 {
     infoPanel = GetComponent<InfoPanelController>();
 }