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