示例#1
0
 public void Save()
 {
     // BEGIN saving_test
     // Save the game to a file called "SaveGame.json"
     SavingService.SaveGame("SaveGame.json");
     // END saving_test
 }
示例#2
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.gameObject == player)
     {
         TimeLapseController.instance.TimeLapseCharge += 4;
         Destroy(this.gameObject);
         SavingService.SaveGame("SaveGame.json");
     }
 }
示例#3
0
 /// <summary>
 /// Call the SavingService.cs SaveGame method on the current active scene.
 /// </summary>
 public void saveGame()
 {
     // Save the game to a file called "SaveGame.json"
     SavingService.SaveGame("SaveGame.json");
 }
示例#4
0
 // Start is called before the first frame update
 void Start()
 {
     SavingService.SaveGame(fileName);
 }
示例#5
0
 public void SaveGame()
 {
     SavingService.SaveGame("saveGame.json");
 }