// Start is called before the first frame update void Start() { UIMonoBehaviour.UIShow <UIMain>(); // Test Net gameObject.AddComponent <Test>(); }
public static void Set(this UIMonoBehaviour ui, TMP_Text text, string str) { if (text != null) { text.text = str; text.gameObject.SetActive(string.IsNullOrEmpty(str) == false); } }
private void Awake() { if (_Instance == null) { _Instance = this; DontDestroyOnLoad(gameObject); } }