Newer
Older
using UnityEngine;
using UnityEngine.SceneManagement;
using static StreamingAssetLoader;
public class ResetSaveDataButton_mobile : MonoBehaviour
{
public void resetPlayerConfig_Bttn()
{
ResetPlayerConfig();
//leads to RereadFiles_PersistentDataPath();
}
public void resetPlayerSaveGame_Bttn()
{
ResetPlayerSaveGame();
//ResetDataPath();
print("resetPlayerSaveGame_Bttn, Todo");
}
public void resetDataPath_Bttn()
{
//ResetPlayerSaveGame();
ResetDataPath();
}
public void ResetAll_Bttn()
{
ReloadStreamingAsset();
ResetPlayerSaveGame();
}
public void ReloadStreamingAsset_Bttn()
ReloadStreamingAsset();
public void GenerateAllDemoFiles()
{
GenerateDemoFiles.GenerateAll(); // has to happen in a Level.
SceneManager.LoadScene("MainMenu"); // reload generated content
Application.Quit();
}