IEnumerator LoadGarage_Coroutine() { // if (gotConfig == false) { // //send request get config data // sfs.Send (new ExtensionRequest (LobbyConstants.CMD_GET_CONFIG, new SFSObject ())); // } // while (gotConfig == false) // yield return null; UIManager.ShowLoading(); #if UNITY_EDITOR if (StartingTutorialStep >= 0) { StartCoroutine(SaveStepTutorial(StartingTutorialStep)); SGPlayersManager.Instance.PlayerMe.Property.StepTutorial = StartingTutorialStep; } #endif if (SGPlayersManager.Instance.PlayerMe.Property.StepTutorial < TutorialStep.Movement) { SGSceneManager.LoadLevel(SceneName.Tutorial_City); } else { SGSceneManager.LoadLevel(SceneName.Garage); } yield return(null); }
public void OnClickedOffline() { SGSceneManager.LoadLevel(SceneName.Garage); }