コード例 #1
0
ファイル: Controller.cs プロジェクト: rahelarnold98/gofind
        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");
        }
コード例 #2
0
ファイル: QueryBuilder.cs プロジェクト: rahelarnold98/gofind
        // Before the script starts
        private void Start()
        {
            mapController = UIManager.GetScriptComponentByName <MapController>(MapControllerGameObjectName);
            if (mapController == null)
            {
                logger.Warn("No map controller found. Given name: " + MapControllerGameObjectName);
            }

            uiManager = UIManager.GetScriptComponentByName <UIManager>(UIManagerGameObjectName);
            if (uiManager == null)
            {
                logger.Warn("No UIManager found. Given name: " + UIManagerGameObjectName);
            }

            exampleInput = UIManager.GetScriptComponentByName <ExampleInput>(ExampleInputGameObjectName);
            if (exampleInput == null)
            {
                logger.Warn("No example input found. Given name: " + ExampleInputGameObjectName);
            }

            controller = UIManager.GetScriptComponentByName <Controller>(ControllerGameObjectName);
            if (controller == null)
            {
                logger.Warn("No controller found. Given name: " + ControllerGameObjectName);
            }
        }