/* We also save on application pause in iOS, as OnAppicationQuit isn't always called */ //#if UNITY_IPHONE && !UNITY_EDITOR public void OnApplicationPause(bool b) { Debug.Log("~~~~~~~~~~~ OnApplicationPause() "); // 로딩 된 후라면 if (_isStarted == true) { SaveIsEasy.SaveAll(); } }
void OnGUI() { if (GUI.Button(new Rect(10, 10, 150, 20), "Save Game")) { SaveIsEasy.SaveAll(); } if (GUI.Button(new Rect(10, 50, 150, 20), "Load Game")) { SaveIsEasy.LoadAll(true); } }
void OnGUI() { if (GUI.Button(new Rect(10, 10, 150, 20), "Save Game")) { SaveIsEasy.SaveAll(); } if (GUI.Button(new Rect(10, 50, 150, 20), "Load Game")) { SaveIsEasy.LoadAll(true); } GUI.Label(new Rect(10, 300, 200, 20), "Time: " + (int)time); }
public void OnApplicationQuit() { SaveIsEasy.SaveAll(); }