Files
Cielonos/Assets/OtherPlugins/HUD-Navigation-System/_Examples/Scripts/HUDCurrentDegrees.cs

27 lines
490 B
C#
Raw Normal View History

2026-04-18 13:57:19 -04:00
using UnityEngine;
2025-11-25 08:19:33 -05:00
namespace SickscoreGames.HUDNavigationSystem
{
2026-04-18 13:57:19 -04:00
[RequireComponent(typeof(HNSTextReference))]
2025-11-25 08:19:33 -05:00
public class HUDCurrentDegrees : MonoBehaviour
{
#region Variables
2026-04-18 13:57:19 -04:00
protected HNSTextReference textRef;
2025-11-25 08:19:33 -05:00
#endregion
#region Main Methods
void Awake ()
{
2026-04-18 13:57:19 -04:00
textRef = GetComponent<HNSTextReference> ();
2025-11-25 08:19:33 -05:00
}
void Update ()
{
2026-04-18 13:57:19 -04:00
if (textRef)
textRef.SetText(((int)HUDNavigationCanvas.Instance.CompassBarCurrentDegrees).ToString ());
2025-11-25 08:19:33 -05:00
}
#endregion
}
}