using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ArrowDebugView : MonoBehaviour { public Text text; public GameObject panel; public Button tap; public static ArrowDebugView ins; public void AppendLog(string str) { text.text += str + "\n"; } public void ClearLog() { text.text = ""; } void Start() { ins = this; tap.onClick.AddListener(delegate() { panel.SetActive(!panel.activeSelf); }); } void OnDestroy() { if (ins == this) ins = null; } }