public void Delete(KcpLink link) { int index = link.Index; buffer[index] = null; top--; buffer[index] = buffer[top]; buffer[top] = null; if (top > 0) { buffer[index].Index = index; } }
public override void RemoveLink(KcpLink link) { linkBuff[link.buffIndex].Delete(link); }
public virtual void RemoveLink(KcpLink link) { }