Esempio n. 1
0
        // call this to connect to Photon
        public void Connect(string pRoomName)
        {
            disconnectWanted = false;
            roomName         = pRoomName;
            this.loadBalancingClient.AppId      = "1f107329-3f6f-48fa-9218-23d6664a64ed"; // set your app id here
            this.loadBalancingClient.AppVersion = "1.0_2.22";                             // set your app version here

            // "eu" is the European region's token
            if (!this.loadBalancingClient.ConnectToRegionMaster("eu")) // can return false for errors
            {
                Console.WriteLine("Error in connecting");
            }
            Console.WriteLine("No error when ask for connection");
            dispatcherTimer          = new DispatcherTimer();
            dispatcherTimer.Tick    += DispatcherTimer_Tick;
            dispatcherTimer.Interval = new TimeSpan(0, 0, 0, 0, 100);
            dispatcherTimer.Start();

            presHandling.MakeCursorWait(true);
        }