Files
Cielonos/Assets/OtherPlugins/HUD-Navigation-System/Scripts/Prefabs/HNSCompassBarPrefab.cs

38 lines
780 B
C#
Raw Normal View History

2026-04-18 13:57:19 -04:00
using UnityEngine;
2025-11-25 08:19:33 -05:00
using UnityEngine.UI;
namespace SickscoreGames.HUDNavigationSystem
{
[AddComponentMenu (HNS.Name + "/HNS CompassBar Prefab")]
public class HNSCompassBarPrefab : HNSPrefab
{
#region Variables
[Header("Icon")]
[Tooltip("Assign an image component.")]
public Image Icon;
[Header("Distance Text")]
[Tooltip("Assign the distance text component.")]
2026-04-18 13:57:19 -04:00
public HNSTextReference DistanceText;
2025-11-25 08:19:33 -05:00
#endregion
#region Main Methods
#endregion
#region Override Methods
/// <summary>
/// Change the color of the compass bar icon.
/// </summary>
/// <param name="color">Color.</param>
public override void ChangeIconColor (Color color)
{
base.ChangeIconColor (color);
if (Icon != null)
Icon.color = color;
}
#endregion
}
}