Esempio n. 1
0
 public virtual void Dispose()
 {
     envelope.Dispose();
     envelope = null;
     if (metaData != null)
     {
         metaData.Clear();
     }
     metaData = null;
     kcp      = null;
 }
Esempio n. 2
0
 public void Redirect(int ciP, int cport)
 {
     endpPoint.Address = new IPAddress(ciP.ToBytes());
     endpPoint.Port    = cport;
     ip   = ciP;
     port = cport;
     envelope.Clear();
     metaData.Clear();
 }
Esempio n. 3
0
 private void OnDisable()
 {
     //Debug.Log($"bullet {Id} OnDisable");
     if (Owner != null)
     {
         Owner.RemoveBullet(Id);
         Owner = null;
     }
     inputBuffer.Clear();
 }
Esempio n. 4
0
 public void Initialize()
 {
     if (lstWaitingID != null)
     {
         lstWaitingID.Clear();
     }
     //清空数据库队列缓存
     if (lstWaitingIDInDB != null)
     {
         lstWaitingIDInDB.Clear();
     }
 }
Esempio n. 5
0
 /// <summary>
 /// 清除缓存资源
 /// </summary>
 public void Clear()
 {
     swap.Clear();
     queue.Clear();
     HGUIManager.GameBuffer.RecycleChild(Enity.gameObject);
 }
Esempio n. 6
0
 /// <summary>
 /// 清除缓存资源
 /// </summary>
 public void Clear()
 {
     swap.Clear();
     queue.Clear();
     HGUIManager.RecycleChild(Enity);
 }