Exemplo n.º 1
0
 void EndEnter()
 {
     Debug.Log("End Enter");
     soundEngine.PlaySoundWithName("Hack");
     musicEngine.mixerSnapshots[14].TransitionTo(27);
     musicEngine.currentMusicSnapshot = musicEngine.mixerSnapshots[14];
     Debug.Log("YOU WON");
     screenDarken = GameObject.FindGameObjectWithTag("ScreenDarken").GetComponent <FadeOutAndLoadLevel>();
     if (screenDarken != null)
     {
         Debug.Log("Darkened found");
     }
     screenDarken.FadeAndLoadLevel();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     screenDarken = GameObject.FindGameObjectWithTag("ScreenDarken").GetComponent <FadeOutAndLoadLevel>();
     //screenDarken.fadeTime = fadeTime;
     StartCoroutine("StartGame");
 }