Example #1
0
 private void m_close()
 {
     GameLooper.BackToMainThread(delegate()
     {
         CloseCallback();
     });
 }
Example #2
0
 private void m_error()
 {
     GameLooper.BackToMainThread(delegate()
     {
         ErrorCallback();
     });
 }
Example #3
0
 private void m_connect()
 {
     GameLooper.BackToMainThread(delegate()
     {
         ConnectedCallback();
     });
 }
Example #4
0
 private void m_connect()
 {
     if (ping != null)
     {
         Destroy(ping);
     }
     ping = gameObject.AddComponent <HFPing>();
     ping.Init(serverIP, 5);
     GameLooper.BackToMainThread(connectedHandler);
 }
Example #5
0
 public void DestroyManager()
 {
     prepareUpdateList.Clear();
     updateList.Clear();
     prepareFixedUpdateList.Clear();
     fixedUpdateList.Clear();
     prepareLateUpdateList.Clear();
     lateUpdateList.Clear();
     eventQueue.Clear();
     mainThreadContext = null;
     Instance          = null;
 }
Example #6
0
 public void Dispose()
 {
     prepareUpdateList.Clear();
     updateList.Clear();
     prepareFixedUpdateList.Clear();
     fixedUpdateList.Clear();
     prepareLateUpdateList.Clear();
     lateUpdateList.Clear();
     eventQueue        = null;
     mainThreadContext = null;
     Instance          = null;
 }
Example #7
0
 void Awake()
 {
     Instance          = this;
     mainThreadContext = SynchronizationContext.Current;
 }
Example #8
0
 private void m_error()
 {
     GameLooper.BackToMainThread(errorHandler);
 }
Example #9
0
 private void m_close()
 {
     GameLooper.BackToMainThread(closeHandler);
 }