示例#1
0
        void ComunsCarregado()
        {
            if (ExistenciaDoController.AgendaExiste(ComunsCarregado, this))
            {
                fase = FasesDoLoad.carregando;

                //S = new LoadAndSaveGame().Load(indiceDoJogo);

                if (SaveDatesForJolt.s.SavedGames.Count > indiceDoJogo)
                {
                    S = SaveDatesForJolt.s.SavedGames[indiceDoJogo];
                }
                else
                {
                    S = null;
                }

                if (S == null)
                {
                    a2    = new AsyncOperation[2];
                    a2[0] = SceneManager.LoadSceneAsync("cavernaIntro", LoadSceneMode.Additive);
                    a2[1] = SceneManager.LoadSceneAsync(NomesCenas.katidsVsTempleZone.ToString(), LoadSceneMode.Additive);
                }
                else
                {
                    a2 = new AsyncOperation[S.VariaveisChave.CenasAtivas.Count];
                    for (int i = 0; i < a2.Length; i++)
                    {
                        a2[i] = SceneManager.LoadSceneAsync(S.VariaveisChave.CenasAtivas[i].ToString(), LoadSceneMode.Additive);
                    }
                }
                Time.timeScale = 0;

                SceneManager.sceneLoaded -= CarregouComuns;
                SceneManager.sceneLoaded += SetarCenaPrincipal;
            }
        }
示例#2
0
 public void Save(SaveDates paraSalvar)
 {
     // Debug.Log(indiceDoJogoAtualSelecionado);
     SalvarArquivo("criatures.ori" + indiceDoJogoAtualSelecionado, paraSalvar);
 }