Example #1
0
    /* 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();
        }
    }
Example #2
0
 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);
     }
 }
Example #3
0
    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);
    }
Example #4
0
 public void OnApplicationQuit()
 {
     SaveIsEasy.SaveAll();
 }