예제 #1
0
 void OnApplicationPause(bool pauseStatus)
 {
     if (pauseStatus)
     {
         // save data to file
         DataSerializer.Apply();
     }
 }
예제 #2
0
 void OnApplicationQuit()
 {
     // save data to file
     DataSerializer.Apply();
 }