فهرست منبع

优化广告提示

lzx 1 روز پیش
والد
کامیت
2d91f87e6b

+ 7 - 6
Assets/Scripts/GameUI/UI/BoxPanel/GachaPanel.cs

@@ -66,14 +66,15 @@ namespace Fort23.Mono
         {
             tenButton.onClick.AddListener(async () =>
             {
-                bool relust = await TipsPanle.OpenPnael(10800);
-                if (!relust)
-                {
-                    return;
-                }
-#if UNITY_ANDROID && !UNITY_EDITOR&& Taptap
+#if UNITY_ANDROID && !UNITY_EDITOR&& Ads
                 if (!PlayerManager.Instance.BagController.IsEnough(23001, 1))
                 {
+                    bool relust = await TipsPanle.OpenPnael(10800);
+                    if (!relust)
+                    {
+                        return;
+                    }
+
                     if (TakuSDKManager.Instance.IsReady())
                     {
                         bool isOK = await TakuSDKManager.Instance.ShowAutoAd();

+ 2 - 0
Assets/Scripts/GameUI/UI/MainHeroPnael/BtnFaBaoWidget.cs

@@ -35,6 +35,8 @@ namespace Fort23.Mono
             {
                 faBaoWidget = await UIManager.Instance.CreateGComponent<FaBaoWidget>(null, FaBaoRoot);
                 faBaoWidget.CustomInit(faBaoInfo, false);
+                faBaoWidget.transform.anchorMin = new Vector2(0.5f, 0.5f);
+                faBaoWidget.transform.anchorMax = new Vector2(0.5f, 0.5f);
                 faBaoWidget.transform.pivot = new Vector2(0.5f, 0.5f);
                 faBaoWidget.transform.anchoredPosition = Vector2.zero;
             }

+ 8 - 13
Assets/Scripts/GameUI/UI/ShopPanel/ShopGachaPanel.cs

@@ -58,14 +58,15 @@ namespace Fort23.Mono
         {
             Btn_ShuangBei.onClick.AddListener(async () =>
             {
-                bool relust = await TipsPanle.OpenPnael(10800);
-                if (!relust)
-                {
-                    return;
-                }
-#if UNITY_ANDROID && !UNITY_EDITOR&& Taptap
+#if UNITY_ANDROID && !UNITY_EDITOR&& Ads
                 if (!PlayerManager.Instance.BagController.IsEnough(23001, 1))
                 {
+                    bool relust = await TipsPanle.OpenPnael(10800);
+                    if (!relust)
+                    {
+                        return;
+                    }
+
                     if (TakuSDKManager.Instance.IsReady())
                     {
                         bool isOK = await TakuSDKManager.Instance.ShowAutoAd();
@@ -80,7 +81,6 @@ namespace Fort23.Mono
                     }
                 }
 
-        
 
 #endif
                 float beLv =
@@ -100,12 +100,7 @@ namespace Fort23.Mono
                 // UIManager.Instance.HideUIUIPanel<ShopGachaPanel>();
             });
 
-            Btn_LingQu.onClick.AddListener(async () =>
-            {
-                 UIManager.Instance.HideUIUIPanel<ShopGachaPanel>();
-
-                
-            });
+            Btn_LingQu.onClick.AddListener(async () => { UIManager.Instance.HideUIUIPanel<ShopGachaPanel>(); });
         }
 
         public async override CTask<bool> AsyncInit(object[] uiData)