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