示例#1
0
        private void HandleServerEventRemovePeerComponent(RemovePeerComponent message)
        {
            NetworkCommunicator peer = message.Peer;

            peer.RemoveComponent(peer.GetComponent(message.ComponentId));
        }
示例#2
0
 protected override void HandlePlayerDisconnect(NetworkCommunicator networkPeer) => networkPeer.RemoveComponent <MissionPeer>();