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