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