Exemple #1
0
        private void OnPlayerLeaved(PlayerLeavedPacket packet)
        {
            var player = _playerManager.RemovePlayer(packet.Id);

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

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