Skip to content

Commit f11e30a

Browse files
committed
[修改]1. 修改背包的点击策略
1 parent d94be2f commit f11e30a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Assets/Hotfix/UI/Logic/UIMain/UIMain.Logic.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using GameFrameX.Runtime;
2+
using GameFrameX.UI.Runtime;
23
#if ENABLE_UI_FAIRYGUI
34
using FairyGUI;
45
using GameFrameX.UI.FairyGUI.Runtime;
@@ -30,9 +31,13 @@ public override async void OnOpen(object userData)
3031

3132
private async void OnBagBtnClick()
3233
{
34+
#if ENABLE_UI_UGUI
3335
ReqBagInfo reqBagInfo = new ReqBagInfo();
3436
var respBagInfo = await GameApp.Network.GetNetworkChannel("network").Call<RespBagInfo>(reqBagInfo);
3537
Log.Debug(respBagInfo);
38+
#elif ENABLE_UI_FAIRYGUI
39+
await GameApp.UI.OpenAsync<UIBag>(UIGroupConstants.Window);
40+
#endif
3641
}
3742
}
3843
}

0 commit comments

Comments
 (0)