Example #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);
    }
Example #2
0
 // Transitions to the the specified level
 public void LevelSelect(string level)
 {
     sceneFader.FadeTransition(level);
 }