public void Save() { // BEGIN saving_test // Save the game to a file called "SaveGame.json" SavingService.SaveGame("SaveGame.json"); // END saving_test }
private void OnCollisionEnter(Collision collision) { if (collision.gameObject == player) { TimeLapseController.instance.TimeLapseCharge += 4; Destroy(this.gameObject); SavingService.SaveGame("SaveGame.json"); } }
/// <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"); }
// Start is called before the first frame update void Start() { SavingService.SaveGame(fileName); }
public void SaveGame() { SavingService.SaveGame("saveGame.json"); }