示例#1
0
 public static void DestroyInstance()
 {
     if (instance != null)
     {
         instance.OnDestroy();
         instance = null;
     }
 }
示例#2
0
 public static App GetInstance()
 {
     if (instance == null)
         instance = new App();
     return instance;
 }