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) { } }
public void newSaveGame() { try { AccountContainer acc = AccountContainer.self; acc.addNewSaveGame(inputNewSave.text); acc.loadGame(inputNewSave.text); restartOption(); } catch (System.Exception e) { } }