Example #1
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
 public void DeleteSave()
 {
     savingWrapper.Delete();
 }