Пример #1
0
 public void load()
 {
     try {
         AccountContainer acc = AccountContainer.self;
         acc.loadGame(acc.accounts[savesDropdown.value]);
         Debug.Log(acc.currentAccount.name);
         namePlayers.text = "HAI " + AccountContainer.self.currentAccount.name + " !";
     }
     catch (System.Exception e)
     {
     }
 }
Пример #2
0
 public void newSaveGame()
 {
     try
     {
         AccountContainer acc = AccountContainer.self;
         acc.addNewSaveGame(inputNewSave.text);
         acc.loadGame(inputNewSave.text);
         restartOption();
     }
     catch (System.Exception e)
     {
     }
 }