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; } }
void Awake() { singleton = this; }
// METHODS void Awake() { infoPanel = GetComponent<InfoPanelController>(); }