private void Start() { logger.Debug("Start"); // Before first frame if (!unityLocation.IsLocationServiceEnabled()) { logger.Warn("No location service available. Using default location"); initialGeoLocation = new GeoLocation(47.560127, 7.589704); InitializeMap(initialGeoLocation); } else { logger.Debug("Requesting intial location"); unityLocation.StartSingleRequest(HandleInitialLocationFound); } arMapper = GameObject.Find("ARMapper").GetComponent <ARMapper>(); logger.Info("Early initialization done"); uiManager.EnableMapCam(true); //EnableARCam(true); //uiManager.EnableMapCam(false); //uiManager.panelManager.ShowPanel("calibration"); }
private static void WriteJson(string json, string path) { StreamWriter sw = File.CreateText(path); sw.WriteLine(json); sw.Flush(); sw.Close(); logger.Info("Wrote successfully to " + path); }