mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
RemovePlayerMessage is empty (#142)
This commit is contained in:
parent
8ce2489df0
commit
56007f3c8b
@ -140,7 +140,7 @@ public override void Serialize(NetworkWriter writer)
|
||||
}
|
||||
}
|
||||
|
||||
public class RemovePlayerMessage : MessageBase
|
||||
public class RemovePlayerMessage : EmptyMessage
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -588,8 +588,6 @@ internal void OnServerRemovePlayerMessageInternal(NetworkMessage netMsg)
|
||||
{
|
||||
if (LogFilter.Debug) { Debug.Log("NetworkManager:OnServerRemovePlayerMessageInternal"); }
|
||||
|
||||
RemovePlayerMessage msg = netMsg.ReadMessage<RemovePlayerMessage>();
|
||||
|
||||
if (netMsg.conn.playerController != null)
|
||||
{
|
||||
OnServerRemovePlayer(netMsg.conn, netMsg.conn.playerController);
|
||||
|
@ -861,8 +861,6 @@ static void OnClientReadyMessage(NetworkMessage netMsg)
|
||||
// default remove player handler
|
||||
static void OnRemovePlayerMessage(NetworkMessage netMsg)
|
||||
{
|
||||
RemovePlayerMessage msg = netMsg.ReadMessage<RemovePlayerMessage>();
|
||||
|
||||
if (netMsg.conn.playerController != null)
|
||||
{
|
||||
netMsg.conn.RemovePlayerController();
|
||||
|
Loading…
Reference in New Issue
Block a user