狗屎Minimax坏我代码
This commit is contained in:
@@ -1,29 +1,25 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using SickscoreGames;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SickscoreGames.HUDNavigationSystem
|
||||
{
|
||||
[RequireComponent(typeof(Text))]
|
||||
[RequireComponent(typeof(HNSTextReference))]
|
||||
public class HUDCurrentDegrees : MonoBehaviour
|
||||
{
|
||||
#region Variables
|
||||
protected Text text;
|
||||
protected HNSTextReference textRef;
|
||||
#endregion
|
||||
|
||||
|
||||
#region Main Methods
|
||||
void Awake ()
|
||||
{
|
||||
text = GetComponent<Text> ();
|
||||
textRef = GetComponent<HNSTextReference> ();
|
||||
}
|
||||
|
||||
|
||||
void Update ()
|
||||
{
|
||||
text.text = ((int)HUDNavigationCanvas.Instance.CompassBarCurrentDegrees).ToString ();
|
||||
if (textRef)
|
||||
textRef.SetText(((int)HUDNavigationCanvas.Instance.CompassBarCurrentDegrees).ToString ());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user