public static void DestroyInstance() { if (instance != null) { instance.OnDestroy(); instance = null; } }
public static App GetInstance() { if (instance == null) instance = new App(); return instance; }