Esempio n. 1
0
        private void Awake()
        {
            logger  = LogManager.GetInstance().GetLogger(GetType());
            calcVec = Vector3.zero;

            mapController = GetComponent <MapController>();
            flipFactor    = mapController.mapPlaneRotated ? -1f : 1f;

            // Find camera
            var        err    = false;
            GameObject camObj = GameObject.Find("MapCamera");

            if (camObj != null)
            {
                camera = camObj.GetComponent <Camera>();
                if (!camera.orthographic)
                {
                    err = true;
                }
            }
            else
            {
                err = true;
            }

            if (err)
            {
                Debug.LogError(
                    "Could not find a orthographic camera called MapCamera.Set in " +
                    "inspector please");
            }

            EnableDoubleTap(false);
            EnableTouch(false);
        }
Esempio n. 2
0
        private void Awake()
        {
            // Important to not crash in editor
            if (Application.isEditor)
            {
                GameObject.Find("ARCore Device").active = false;
            }


            ActiveScreens = new List <GameObject>();

            logger = LogManager.GetInstance().GetLogger(GetType());
            logger.Debug("Awake!");
            currentState = State.IDLE;

            // Use Awake instead of ctor
            nativeLocation = LocationAwarenessPlugin.GetInstance();
            logger.Debug("Created LocationAwarenessPlugin");

            gameObject.AddComponent <UnityLocationService>();
            unityLocation = gameObject.GetComponent <UnityLocationService>();
            logger.Debug("Added UnityLocationService to Controller");


            gameObject.AddComponent <CineastApi>();
            cineast = gameObject.GetComponent <CineastApi>();
            logger.Debug("Added CineastApi to Controller");

            headingDictionary = new HeadingDictionary();

            uiManager.controller = this;

            logger.Debug("CineastApi Config: " + JsonUtility.ToJson(CineastUtils.Configuration));
        }
Esempio n. 3
0
 private void Awake()
 {
     logger = LogManager.GetInstance().GetLogger(GetType());
 }
Esempio n. 4
0
 private void Awake()
 {
     positionedObjects = new List <GeoPositioned>();
     logger            = LogManager.GetInstance().GetLogger(GetType());
 }
Esempio n. 5
0
 private void Awake()
 {
     logger       = LogManager.GetInstance().GetLogger(GetType());
     filterEngine = new FilterEngine();
 }
Esempio n. 6
0
 private void Awake()
 {
     logger = LogManager.GetInstance().GetLogger(GetType());
     panels = new Dictionary <string, Panel>();
 }