Beispiel #1
0
    public void RetryGame()
    {
        int      slot = SaveAndLoad.slot;
        GameData data = SaveSystem.LoadPlayerSlot(slot);

        if (data != null)
        {
            saveLoad.LoadPlayerSlot(slot);
        }
        else
        {
            VoidData();
        }
        DesactivePause();
    }
Beispiel #2
0
 public void SetData(int loadSlot)
 {
     Pause.onGame     = true;
     SaveAndLoad.slot = loadSlot;
     for (int i = 0; i < 3; i++)
     {
         if (loadSlot == i)
         {
             if (SaveSystem.LoadPlayerSlot(i) != null)
             {
                 SaveAndLoad.newGame = false; saveLoad.LoadPlayerSlot(i);
             }
             else
             {
                 NewGameData();
             }
         }
     }
     GameEvents.timeCounter.Invoke(true);
 }