Exemplo n.º 1
0
        // Use this for initialization
        void Start()
        {
            estimoteUnity = FindObjectOfType <EstimoteUnity>();
            //add event to delegate so when estimoteUnity find beacons, it calls "HandleDidRangeBeacons"
            estimoteUnity.OnDidRangeBeacons += HandleDidRangeBeacons;

            //keep track of the beacons in the room
            customBeacons = FindObjectsOfType <CustomBeacon>();

            //ui's to show beacon data
            ui_selected = GameObject.Find("UI_Selected").transform;
            ui_closest  = GameObject.Find("UI_Closest").transform;

            Invoke("StartScanning", 1);
        }