public void OnConnectedToMaster() { if (ConnectedToMaster != null) { ConnectedToMaster.Invoke(this); } }
public override void OnConnectedToMaster() { base.OnConnectedToMaster(); ConnectingToMaster = false; Debug.Log("Connected to Master!"); ConnectedToMaster?.Invoke(); }
/// <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>(); }
public void OnConnectedToMasterServer() { ConnectedToMaster?.Invoke(); }
public void OnConnectedToMaster(string regionCode) { ConnectedToMaster?.Invoke(regionCode); }