/// <summary> /// Describes what happens when the game starts /// </summary> public void OnStartGame() { if (_localLobbyManager.IsReadyToPlay()) { LoadingSceneManager.LoadScene(SceneName.text); } }
/// <summary> /// Loads the level specified in the inspector /// </summary> /// <returns>The first level.</returns> protected virtual IEnumerator LoadFirstLevel() { yield return(new WaitForSeconds(_delayAfterClick)); FaderManager.Instance.FaderOn(true, 1f); yield return(new WaitForSeconds(1f)); LoadingSceneManager.LoadScene(FirstLevel); }
/// <summary> /// Changes the current scene to the start screen. /// </summary> public virtual void ReturnToStartScreen() { LoadingSceneManager.LoadScene("StartScreen"); // We destroy this persistent object Destroy(gameObject); }
/// <summary> /// Changes the current scene to the start screen. /// </summary> public virtual void ReturnToStartScreen() { _destroyInstance = true; LoadingSceneManager.LoadScene("StartScreen"); }
public virtual void OnOnlineGameAphexClick() { RemoveBackgroundGame(); LoadingSceneManager.LoadScene(OnlineGameAphexSceneName); }
public virtual void OnLocalGameClick() { RemoveBackgroundGame(); LoadingSceneManager.LoadScene(LocalGameSceneName); }