Unity 拖动条里面点击按钮不执行的解决办法
void Start() { Button btn = this.GetComponent<Button>(); btn.onClick.AddListener(OnClick); } private void OnClick() { explain = Main.StaticExplain; if (explain != null) { LoadUnitDatas1(); } }
posted on 2021-04-24 16:57 zqiang0803 阅读(215) 评论(0) 编辑 收藏 举报