摘要: 像ugui的点击按钮,然后触发相关逻辑,都是回调模式的写法,比如下面代码的ShowAlert调用 public class Test7 : MonoBehaviour { public GameObject m_Alert; public Text m_TxtMsg; public Button m 阅读全文
posted @ 2024-02-29 23:17 yanghui01 阅读(54) 评论(0) 推荐(0)
摘要: c# 部分 public class Test5Obj { public int i; private string str; public Test5Obj() { } public void PrintInt() { Debug.Log($"c# PrintInt:{i}"); } public 阅读全文
posted @ 2024-02-29 23:04 yanghui01 阅读(98) 评论(0) 推荐(0)