Exemple #1
0
 /// <summary>
 /// Actions to be taken when the cutscene is over.
 /// </summary>
 public void OnEndAnimation()
 {
     player.UnlockKeys();
     if (!ending)
     {
         // set state back to first state
         GameObject.Find("GameController").GetComponent <GameController> ().GoToDefaultState();
     }
     else
     {
         GameObject.Find("FadeCanvas").GetComponentInChildren <Image>().enabled = true;
         GameObject.Find("FadeCanvas").GetComponentInChildren <Image>().color   = new Color(0, 0, 0, 255);
         prgController.PhaseTransition();
     }
 }