public void SendPlayerEjectionCommand(string userId) { using (PooledNetworkBuffer stream = PooledNetworkBuffer.Get()) { using (PooledNetworkWriter writer = PooledNetworkWriter.Get(stream)) { writer.WriteStringPacked(userId); _Client.SendMessageToServer(GameRoomMessagingHubConstants.SEND_PLAYER_EJECTION_COMMAND, stream); } } }
public void SendSystemUserIdToServer(string userId) { using (PooledNetworkBuffer stream = PooledNetworkBuffer.Get()) { using (PooledNetworkWriter writer = PooledNetworkWriter.Get(stream)) { writer.WriteStringPacked(userId); _Client.SendMessageToServer(GameRoomMessagingHubConstants.SEND_SYSTEM_USERID_TO_SERVER, stream); } } }