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