1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- namespace Fort23.Mono
- {
- [UIBinding(prefab = "BreakthroughItemWidget")]
- public partial class BreakthroughItemWidget : UIComponent
- {
- /// <summary>
- /// 1.选择丹药 2.其他道具
- /// </summary>
- private int type;
- private int itemId;
- private void Init()
- {
- }
- public override void AddEvent()
- {
- }
- public override void DelEvent()
- {
- }
- public override void AddButtonEvent()
- {
- Btn_Select.onClick.AddListener(() =>
- {
- //打开选择丹药界面
- if (type == 1)
- {
- SelectElixirPanel.OpenPanel();
- }
- else
- {
- }
- });
- }
- public void CustomInit(int type, int itemId)
- {
- this.type = type;
- this.itemId = itemId;
- }
- }
- }
|