private void Start() { if (null == _locationProvider) { _locationProvider = LocationProviderFactory.Instance.DefaultLocationProvider as AbstractLocationProvider; } }
private void Start() { if (null == localInfo) { localInfo = LocationProviderFactory.Instance.DefaultLocationProvider as AbstractLocationProvider; } InvokeRepeating("ExtractData", 1f, waitTime); //Test this before run: http://thecodekite.com/coord/getcoo.php?lat=42.097&lng=-75.9143&peri=500 }
//get dungeon locations //spawn locations on map that are within a certain radius of current physical location // Start is called before the first frame update void Start() { if (null == _locationProvider) { _locationProvider = LocationProviderFactory.Instance.DefaultLocationProvider as AbstractLocationProvider; getLocation = true; } _yPlane = new Plane(Vector3.up, Vector3.zero); cameraMovement = Camera.main.GetComponent <CameraMovement>(); //UpdateMap(40.551668f, -105.097807f);//gryphon games //get current location //initialize map //StartCoroutine(locationService.GetLocation(result => { // // callBack is going to be null until it’s set // if (result != null) // { // if (result == -1) // { // //failed // //updateMap(9.4166f, 82.5208f);//Bocas Del Toro // //UpdateMap(40.551668f, -105.097807f);//gryphon games // // Now callBack acts as an int // print(result); // } // if (result == 1) // { // //success // UpdateMap(locationService.Latitude, locationService.Longitude); // } // } //})); }