Example #1
0
 /// <summary>
 /// Updates user lobby color
 /// </summary>
 /// <param name="color">Lobby color</param>
 public void UpdateUserLobbyColor(Color lobbyColor)
 {
     SetLobbyColorInternally(lobbyColor);
     OnUserLobbyColorUpdated?.Invoke();
     ServerLobby.SendUserLobbyColorChangedMessage(this);
 }
Example #2
0
 /// <summary>
 /// Updates username
 /// </summary>
 /// <param name="name">Username</param>
 public void UpdateUsername(string name)
 {
     SetNameInternally(name);
     OnUsernameUpdated?.Invoke();
     ServerLobby.SendUsernameChangedMessage(this);
 }