// Save a SaveFile at path and reshape/rename linked button private void CreateUserSaveFile() { var path = Application.persistentDataPath; var newSave = new SaveFileTemplate(inputSaveName.text, (int)GameManager.Instance.difficulty, saveButtonId); XMLFilHelper.CreateXmlFile(path + saveButtonId, newSave); UIUtilities.ChangeButtonVisual(saveButton, saveButtonColors); string buttonText = "Name : " + newSave.Name + "\n" + GetDifficultyString(); UIUtilities.RenameButton(saveButton, buttonText, TextAnchor.MiddleCenter, 18); }