We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d94be2f commit f11e30aCopy full SHA for f11e30a
1 file changed
Assets/Hotfix/UI/Logic/UIMain/UIMain.Logic.cs
@@ -1,4 +1,5 @@
1
using GameFrameX.Runtime;
2
+using GameFrameX.UI.Runtime;
3
#if ENABLE_UI_FAIRYGUI
4
using FairyGUI;
5
using GameFrameX.UI.FairyGUI.Runtime;
@@ -30,9 +31,13 @@ public override async void OnOpen(object userData)
30
31
32
private async void OnBagBtnClick()
33
{
34
+#if ENABLE_UI_UGUI
35
ReqBagInfo reqBagInfo = new ReqBagInfo();
36
var respBagInfo = await GameApp.Network.GetNetworkChannel("network").Call<RespBagInfo>(reqBagInfo);
37
Log.Debug(respBagInfo);
38
+#elif ENABLE_UI_FAIRYGUI
39
+ await GameApp.UI.OpenAsync<UIBag>(UIGroupConstants.Window);
40
+#endif
41
}
42
43
0 commit comments