Beispiel #1
0
    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;
     }
 }
Beispiel #3
0
 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;
 }
Beispiel #5
0
 private void Start()
 {
     metaGameStateController = MetaGameStateController.instance;
     timeRemaining           = timePerLevel * PlayerPrefs.GetInt(PrefKeys.playerLevel);
 }
Beispiel #6
0
 private void Start()
 {
     gameOverController = MetaGameStateController.instance;
 }