// Find lobby public void Play(BrainCloud.RelayConnectionType protocol) { Settings.protocol = protocol; State.user.colorIndex = Settings.colorIndex; // Show loading screen ChangeScreen(ScreenState.JoiningLobby); // Enable RTT m_bcWrapper.RTTService.RegisterRTTLobbyCallback(OnLobbyEvent); m_bcWrapper.RTTService.EnableRTT(BrainCloud.RTTConnectionType.WEBSOCKET, OnRTTConnected, OnRTTDisconnected); }
static public void LoadConfigs() { var appSettings = ConfigurationManager.AppSettings; username = appSettings["username"] ?? ""; password = appSettings["password"] ?? ""; string colorIndexStr = appSettings["colorIndex"] ?? "0"; colorIndex = Int32.Parse(colorIndexStr); string protocolStr = appSettings["protocol"] ?? "3"; protocol = (BrainCloud.RelayConnectionType)Int32.Parse(protocolStr); }