/*internal static void ensureModelViewHelperIfNeeded() { * if (_instance != null) { * return; * } * var managerObj = new GameObject("__ModelViewHelper"); * var component = managerObj.AddComponent<ModelViewHelper>(); * _instance = component; * }*/ //private static bool applicationIsQuitting = false; public void Awake() { if (_instance != null) { Debug.Log("error 11"); } _instance = this; }
public void OnDestroy() { _instance = null; }