Пример #1
0
        public void ConnectToGameserver()
        {
            WarpClient.initialize(Secret.GameServerAPIKey, Secret.GameServerAPIPassword);
            MyGame = WarpClient.GetInstance();

            GameConListener         = new ConnectionListener(this);
            GameZoneRequestListener = new ZoneRequestListener(this);
            MyGame.AddConnectionRequestListener(GameConListener);
            MyGame.AddZoneRequestListener(GameZoneRequestListener);

            MyGame.Connect(Username);
        }
Пример #2
0
        public void ConnectToGameServer()
        {
            WarpClient.initialize(Secret.GameServerAPIKey, Secret.GameServerAPIPassword);
            WarpClient.setRecoveryAllowance(60);
            MyGame = WarpClient.GetInstance();

            GameConListener         = new ConnectionListener(this);
            GameZoneRequestListener = new ZoneRequestListener(this);
            MyGame.AddConnectionRequestListener(GameConListener);
            MyGame.AddZoneRequestListener(GameZoneRequestListener);

            MyGame.Connect(QuizmasterName);
            MyGame.SetGeo("EU");
        }