Ejemplo n.º 1
0
        private void OnPlayerLeaved(PlayerLeavedPacket packet)
        {
            var player = _playerManager.RemovePlayer(packet.Id);

            if (player != null)
            {
                Debug.Log($"[C] Player leaved: {player.Name}");
            }
        }
Ejemplo n.º 2
0
        private void OnPlayerLeft(PlayerDisconnectedPacket packet)
        {
            var player = _playerManager.RemovePlayer(packet.Id);

            if (player != null)
            {
                Debug.Log($"Player disconnected: {player.Name}");
            }
        }