public static void Destroy() { if (_instance != null) { GameObject.DestroyImmediate(_instance.gameObject); } _instance = null; }
private void OnDestroy() { UnLoadAllAssetBundles(); _instance = null; }
void Awake() { _instance = this; GameObject.DontDestroyOnLoad(gameObject); }