예제 #1
0
 public void OnPlayerAdded(object source, LobbyPlayerEventArgs args)
 {
     players.Add(args.PlayerID, new LobbyPlayer(args.PlayerID, args.ControllerIndex)
     {
         Name = args.PlayerID
     });
 }
예제 #2
0
 public void OnPlayerRemoved(object source, LobbyPlayerEventArgs args)
 {
     players.Remove(args.PlayerID);
 }
예제 #3
0
 public void OnCharacterInstantiated(object source, LobbyPlayerEventArgs args)
 {
     lock (locker) charactersToInstantiate.Add(args);
 }