void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(this.gameObject); } }
void OnDestroy() { lock (dispatchQueue) { dispatchQueue.Clear(); } _instance = null; }
internal static void Verify() { if (_instance == null) { _instance = new GameObject("Firesplash.UnityAssets.SocketIO.SIODispatcher").AddComponent <SIODispatcher>(); DontDestroyOnLoad(_instance.gameObject); } }