コード例 #1
0
            internal CoreUpPart(Transform Trans)
            {
                BulletDamageText_ = UIHelper.GetComponent <Text>(Trans, "MainBullet/Damage/Text");
                UIHelper.AddEventToChild(Trans, "MainBullet/Damage/BtnAdd", OnBulletDamageBtnAdd);

                BulletIntervalText_ = UIHelper.GetComponent <Text>(Trans, "MainBullet/Interval/Text");
                UIHelper.AddEventToChild(Trans, "MainBullet/Interval/BtnAdd", OnBulletIntervalBtnAdd);

                BulletCountText_ = UIHelper.GetComponent <Text>(Trans, "MainBullet/Count/Text");
                UIHelper.AddEventToChild(Trans, "MainBullet/Count/BtnAdd", OnBulletCountBtnAdd);

                Refresh();
            }
コード例 #2
0
 public void AddEventToChild(string ChildPath, UnityAction Callback, EventSystemType Type = EventSystemType.Click)
 {
     UIHelper.AddEventToChild(UITransform, ChildPath, Callback, Type);
 }