Exemplo n.º 1
0
        /// <summary>
        /// Starts scanning for beacons.
        /// Also initialises the system if required.
        /// </summary>
        public void StartScanning()
        {
#if !UNITY_EDITOR
#if UNITY_IOS
            EstimoteUnityIOS.StartScanning(BeaconsUUID);
#elif UNITY_ANDROID
            EstimoteUnityAndroid.StartScanning(BeaconsUUID);
#endif
#endif
        }
Exemplo n.º 2
0
        /// <summary>
        /// Starts scanning for beacons.
        /// Also initialises the system if required.
        /// </summary>
        public void StartScanning()
        {
            if (ScanPeriodMillis < 200)
            {
                ScanPeriodMillis = 200;
            }
            if (WaitTimeMillis < 0)
            {
                WaitTimeMillis = 0;
            }

                        #if !UNITY_EDITOR
                        #if UNITY_IOS
            EstimoteUnityIOS.StartScanning(BeaconsUUID);
                        #elif UNITY_ANDROID
            EstimoteUnityAndroid.StartScanning(BeaconsUUID, ScanPeriodMillis, WaitTimeMillis);
                        #endif
                        #endif
        }