public void OnClick_ConfirmSelection() { Debug.Log($"Load scene with character data with {element} and save as character data"); var newCharData = new CharacterData(element); OnSceneLoadedCharacterDataLoad.LoadedCharacterData = newCharData; JSONSaveManager.SaveCharacterDataFileToSelectedSlot(newCharData.Data); sceneLoad.StartAsyncSceneLoad(); }
private void LoadSaveFile() { OnSceneLoadedCharacterDataLoad.LoadedCharacterData = (CharacterData)JSONSaveManager.LoadCharacterDataFile(saveSlotFileName); sceneLoad.StartAsyncSceneLoad(); }