Ejemplo n.º 1
0
    public SceneFader sceneFader; // Reference to scene fader object
    #endregion

    // In order to call this from the button, method needs to be public
    public void PlayGame()
    {
        sceneFader.FadeTransition(loadLevel);
    }
Ejemplo n.º 2
0
 // Transitions to the the specified level
 public void LevelSelect(string level)
 {
     sceneFader.FadeTransition(level);
 }