示例#1
0
 public virtual void Dispose()
 {
     envelope.Dispose();
     envelope = null;
     if (metaData != null)
     {
         metaData.Clear();
     }
     metaData = null;
     kcp      = null;
 }
示例#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();
 }
示例#3
0
 private void OnDisable()
 {
     //Debug.Log($"bullet {Id} OnDisable");
     if (Owner != null)
     {
         Owner.RemoveBullet(Id);
         Owner = null;
     }
     inputBuffer.Clear();
 }
示例#4
0
 public void Initialize()
 {
     if (lstWaitingID != null)
     {
         lstWaitingID.Clear();
     }
     //清空数据库队列缓存
     if (lstWaitingIDInDB != null)
     {
         lstWaitingIDInDB.Clear();
     }
 }
示例#5
0
 /// <summary>
 /// 清除缓存资源
 /// </summary>
 public void Clear()
 {
     swap.Clear();
     queue.Clear();
     HGUIManager.GameBuffer.RecycleChild(Enity.gameObject);
 }
示例#6
0
 /// <summary>
 /// 清除缓存资源
 /// </summary>
 public void Clear()
 {
     swap.Clear();
     queue.Clear();
     HGUIManager.RecycleChild(Enity);
 }