IEnumerator IntroSequenceCoroutine() { MetaGameStateController mgsc = MetaGameStateController.instance; if (mgsc != null) { mgsc.HardSetPause(true); } st.TransitionIn(transitionTime); yield return(new WaitForSeconds(transitionTime * 0.8f)); if (countDownObjects != null && countDownObjects.Length != 0) { for (int i = 0; i < countDownObjects.Length; i++) { countDownObjects[i].SetActive(true); yield return(new WaitForSeconds(0.3f)); } yield return(new WaitForSeconds(0.4f)); for (int i = 0; i < countDownObjects.Length; i++) { countDownObjects[i].SetActive(false); } } if (mgsc != null) { mgsc.SetPauseState(false); } }
private void Awake() { if (instance == null) { instance = this; } }
void Start() { ps = PointSystem.instance; metaGameStateController = MetaGameStateController.instance; if (metaGameStateController == null) { throw new System.Exception("Game State controller not found"); } }
private void Start() { pointSystem = PointSystem.instance; gameOverController = MetaGameStateController.instance; }
private void Start() { metaGameStateController = MetaGameStateController.instance; timeRemaining = timePerLevel * PlayerPrefs.GetInt(PrefKeys.playerLevel); }
private void Start() { gameOverController = MetaGameStateController.instance; }