예제 #1
0
    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);
    }
예제 #2
0
 public void OnClickedOffline()
 {
     SGSceneManager.LoadLevel(SceneName.Garage);
 }