using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TestBleConnect : MonoBehaviour { public static TestBleConnect ins; // Start is called before the first frame update void Start() { ins = this; } // Update is called once per frame private void OnDestroy() { if (ins == this) ins = null; } public static void Log(string msg) { if (ins) ins.transform.Find("Scroll View/Viewport/Content/Text").GetComponent().text += DateTime.Now.ToString() + "\n" + msg + "\n"; } }