Exemple #1
0
    public void CreateGame()
    {
        InputField.gameObject.SetActive(false);
        InputField.gameObject.SetActive(true);

        var text = InputField.text;

        if (!string.IsNullOrEmpty(text))
        {
            SaveFiles.SetSaveAndLoad(InputField.text, true);
        }
    }
Exemple #2
0
 void LoadSave(SaveFile saveFile)
 {
     SaveFiles.SetSaveAndLoad(saveFile.FileNameWithoutExt, false);
 }