示例#1
0
        public void SalvarAgora(NomesCenas[] cenasAtivas)
        {
            if (SaveDatesForJolt.s == null)
            {
                new SaveDatesForJolt();
            }

            if (SaveDatesForJolt.s.SavedGames.Count > loadSave.indiceDoJogoAtualSelecionado)
            {
                SaveDatesForJolt.s.SavedGames[loadSave.indiceDoJogoAtualSelecionado] = new SaveDates(cenasAtivas);
            }
            else
            {
                SaveDatesForJolt.s.SavedGames.Add(new SaveDates(cenasAtivas));
            }
            SaveAndLoadInJolt.Save();
            //loadSave.Save(new SaveDates(cenasAtivas));

            tempoDecorrido = 0;
        }
示例#2
0
        public void SalvarAgora()
        {
            if (SaveDatesForJolt.s == null)
            {
                new SaveDatesForJolt();
            }

            if (SaveDatesForJolt.s.SavedGames.Count > loadSave.indiceDoJogoAtualSelecionado)
            {
                SaveDatesForJolt.s.SavedGames[loadSave.indiceDoJogoAtualSelecionado] = new SaveDates();
            }
            else
            {
                SaveDatesForJolt.s.SavedGames.Add(new SaveDates());
            }

            Debug.Log(SaveDatesForJolt.s.SavedGames.Count + " savedGamesCount: saveprops" + SaveDatesForJolt.s.SaveProps.Count);

            SaveAndLoadInJolt.Save();
            //  loadSave.Save(new SaveDates());

            tempoDecorrido = 0;
        }