private IEnumerator Initializing() { yield return(MainGameManager.Instance.LoadSceneCoroutine(ConstantsScene.GAME_SCENE)); sceneController = GameSceneController.Instance; sceneController.Initialize(); while (!sceneController.isInit) { yield return(null); } IsInit = true; StartCoroutine(Show()); }
private IEnumerator Show(string _spaceship) { yield return(MainGameManager.Instance.LoadSceneCoroutine(ConstantsScene.GAME_SCENE)); sceneController = GameSceneController.Instance; sceneController.Initialize(_spaceship); gameplay = sceneController.GetGameplayManager(); playerSpaceship = gameplay.player.GetPlayerSpaceship(); while (!sceneController.isInit) { yield return(null); } IsInit = true; OnChangePlayerSlots(); yield return(SplashScreenManager.Instance.HideSplashScreen()); }