Example #1
0
 void NewGame()
 {
     StartNewGame.GetComponent <AudioSource>().Play();
     if (File.Exists(Application.persistentDataPath + "/PlayerData.json"))
     {
         File.Delete(Application.persistentDataPath + "/PlayerData.json");
     }
     GenerateMap();
     Loader.CreateNewPlayerData();
     SceneManager.LoadScene(1);
 }