예제 #1
0
 public void OnConnectedToMaster()
 {
     if (ConnectedToMaster != null)
     {
         ConnectedToMaster.Invoke(this);
     }
 }
예제 #2
0
 public override void OnConnectedToMaster()
 {
     base.OnConnectedToMaster();
     ConnectingToMaster = false;
     Debug.Log("Connected to Master!");
     ConnectedToMaster?.Invoke();
 }
예제 #3
0
 /// <summary>
 /// Connects to Master and loads the Plugins
 /// </summary>
 public void Start(string configFile)
 {
     _client.Started += () => ConnectedToMaster?.Invoke();
     _client.Start(new FileConfigProvider($@"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\{configFile}"));
     Lobbies  = _client.GetPlugin <LobbiesPlugin>();
     PeerInfo = _client.GetPlugin <PeerInfoPlugin>();
     Profiles = _client.GetPlugin <ProfilesPlugin>();
     Rooms    = _client.GetPlugin <RoomsPlugin>();
 }
예제 #4
0
 public void OnConnectedToMasterServer()
 {
     ConnectedToMaster?.Invoke();
 }
예제 #5
0
 public void OnConnectedToMaster(string regionCode)
 {
     ConnectedToMaster?.Invoke(regionCode);
 }