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); }
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"); }