Example #1
0
 /// <summary>
 /// Show a light beacon over all non-visited POIs for duration in seconds and with optional custom horizontal scale for the bright cylinder.
 /// </summary>
 public void POIShowBeacon(float duration, float horizontalScale, float intensity, Color tintColor)
 {
     for (int k = 0; k < icons.Count; k++)
     {
         CompassActiveIcon icon = icons[k];
         if (icon == null || icon.poi.isVisited || !icon.poi.isVisible)
         {
             continue;
         }
         POIShowBeacon(icon.poi, duration, horizontalScale, intensity, tintColor);
     }
 }
Example #2
0
        /// <summary>
        /// Used to add a POI to the compass. Returns false if POI is already registered.
        /// </summary>
        public bool POIRegister(CompassProPOI newPOI)
        {
            if (icons == null)
            {
                return(false);
            }
            int iconsCount = icons.Count;

            for (int k = 0; k < iconsCount; k++)
            {
                if (icons[k].poi == newPOI)
                {
                    return(false);
                }
            }
            CompassActiveIcon newIcon = new CompassActiveIcon(newPOI);

            icons.Add(newIcon);
            return(true);
        }