using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DebugArrowOffsetAngle2 : MonoBehaviour { [SerializeField] Text offsetAngleText; public static DebugArrowOffsetAngle2 ins; void Start() { ins = this; } void OnDestroy() { if (ins == this) ins = null; } public void SetOffsetAngles(float x, float y) { offsetAngleText.text = "x:" + x.ToString("#0.000") + "\ny:" + y.ToString("#0.000"); } }