public void DeleteSave() { SavingWrapper savingWrapper = (SavingWrapper)GameObject.FindObjectOfType(typeof(SavingWrapper)); if (savingWrapper != null) { savingWrapper.Delete(); } }
private void Delete() { SavingWrapper savingWrapper = (SavingWrapper)GameObject.FindObjectOfType(typeof(SavingWrapper)); if (savingWrapper != null) { saveSlotDB.RemoveSaveRecord(saveFile); savingWrapper.Delete(saveFile); } SetSlotInfo(); saveMenu.CancelDelete(); }
public void ChooseNewFollower() { // Delete old save SavingWrapper savingWrapper = (SavingWrapper)GameObject.FindObjectOfType(typeof(SavingWrapper)); if (savingWrapper != null) { savingWrapper.Delete(); } // Create and register new follower FollowerRole followerRole = new FollowerRole(); followerRole.FollowerClass = followerPrefab.GetComponent <BaseStats>().GetClass(); followerRole.Identifier = followerPrefab.GenerateNewUniqueIdentifier(); // followers.AddNewFollower(FollowerPosition.Combat, followerRole); GetComponent <ChangeSceneButton>().ChangeScene(); }
public void DeleteSave() { savingWrapper.Delete(); }