void Start() { Button btn = this.GetComponent<Button>(); btn.onClick.AddListener(OnClick); } private void OnClick() { explain = Main.StaticExplain; if (explain != null) { LoadUnitDatas1(); } }
Unity 拖动条里面点击按钮不执行的解决办法
原文:https://www.cnblogs.com/zqiang0803/p/14697393.html