Exemple #1
0
    IEnumerator AutoSave()
    {
        yield return(new WaitForSeconds(30));

        SaveLoadJson.SaveData();
        StartCoroutine(AutoSave());
    }
Exemple #2
0
 void GameOver()
 {
     SceneManager.LoadScene(0);
     SaveLoadJson.SaveData();
 }
Exemple #3
0
 public void ClickTheButton()
 {
     SaveLoadJson.SaveData();
 }