예제 #1
0
    private void OnApplicationQuit()
    {
        Shutdown();

        _instance = null;
        Destroy(gameObject);
        _applicationIsQuitting = true;
    }
예제 #2
0
 // force the lazy load.
 public static void Load()
 {
     _instance = instance;
 }