Ejemplo n.º 1
0
        // 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);
        }
Ejemplo n.º 2
0
        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);
        }