Esempio n. 1
0
        private void OnChangeAvatarMessage(ClientSocket clientSocket, ChangeAvatarMessage message)
        {
            var user = _gameManager.FindUserByClientSocket(clientSocket);

            if (user == null)
            {
                return;
            }

            user.AvatarId = message.avatarId;
            _uiSystem.ChangeLobbyPlayerAvatar(user);
        }