they were working but stopped all of a sudden not sure why heres the saving wrapper and main menu ui involving a new game
public void NewGame(string saveFile)
{
if (!String.IsNullOrEmpty(saveFile)) return;
SetCurrentSave(saveFile);
StartCoroutine(LoadFirstScene());
}
private void SetCurrentSave(string saveFile)
{
PlayerPrefs.SetString(currentSaveKey, saveFile);
}
private IEnumerator LoadFirstScene()
{
Fader fader = FindObjectOfType<Fader>();
yield return fader.FadeOut(fadeOutTime);
yield return SceneManager.LoadSceneAsync(firstSceneBuildIndex);
yield return fader.FadeIn(fadeInTime);
}
public void NewGame()
{
savingWrapper.value.NewGame(newGameNameField.text);
}