using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using Ximmerse.XR.Utils; using Ximmerse.XR.Internal; public class UILogManager : MonoBehaviour { public static UILogManager Instance; public Text text1; public Text text2; public Text text3; private void Awake() { if (Instance) { DestroyImmediate(gameObject); return; } Instance = this; } public void SendLogText(int Lv, string msg) { switch (Lv) { case 1: text1.text = msg; break; case 2: text2.text = msg; break; default: text3.text = msg; break; } } }