Files
Cielonos/Assets/OtherPlugins/HUD-Navigation-System/_Examples/Scripts/HUDCurrentDegrees.cs
SoulliesOfficial ef7b479712 initial
2025-11-25 08:19:33 -05:00

31 lines
531 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using SickscoreGames;
namespace SickscoreGames.HUDNavigationSystem
{
[RequireComponent(typeof(Text))]
public class HUDCurrentDegrees : MonoBehaviour
{
#region Variables
protected Text text;
#endregion
#region Main Methods
void Awake ()
{
text = GetComponent<Text> ();
}
void Update ()
{
text.text = ((int)HUDNavigationCanvas.Instance.CompassBarCurrentDegrees).ToString ();
}
#endregion
}
}