コード例 #1
0
 public void SaveGame(string saveName)
 {
     Debug.Log(Application.persistentDataPath);
     //BroadcastMessage("SaveGame", saveName);
     if (!Directory.Exists(Application.persistentDataPath + "/" + saveName + "/"))
     {
         Directory.CreateDirectory(Application.persistentDataPath + "/" + saveName + "/");
     }
     buildingController.SaveGame(saveName);
     gameController.SaveGame(saveName);
     farmingController.SaveGame(saveName);
     workerController.SaveGame(saveName);
     miningController.SaveGame(saveName);
     talentPanelScript.SaveGame(saveName);
     mapController.SaveGame(saveName);
 }