From 9102c8914cc828910900d8178b084e06af293484 Mon Sep 17 00:00:00 2001 From: yangjing Date: Mon, 30 May 2022 17:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UIs/PanelResult.cs | 2 +- Assets/Scripts/Utils/AdsUtils.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/UIs/PanelResult.cs b/Assets/Scripts/UIs/PanelResult.cs index f72c4bf2..5498ec10 100644 --- a/Assets/Scripts/UIs/PanelResult.cs +++ b/Assets/Scripts/UIs/PanelResult.cs @@ -44,7 +44,7 @@ public class PanelResult : BasePanel mGobLose.SetActive(!pWin); float tLevelFactor = ((PlayerData.Instance.CurrentLevel - 1) / 20) * 0.5f + 1; - mBaseCoin = (int)(pTotalHurt * 10 * tLevelFactor * (pWin ? 1 : 0.3f)); + mBaseCoin = (int)(pTotalHurt * 10 * tLevelFactor * (pWin ? 1 : 0.5f)); mIsRolling = true; mTxtAdCoin.text = UIUtils.NumForShort(mBaseCoin); diff --git a/Assets/Scripts/Utils/AdsUtils.cs b/Assets/Scripts/Utils/AdsUtils.cs index 8c5a6af9..dc27e6d3 100644 --- a/Assets/Scripts/Utils/AdsUtils.cs +++ b/Assets/Scripts/Utils/AdsUtils.cs @@ -23,6 +23,7 @@ public static class AdsUtils return; } +#if USE_IAP if (TKGUtils.WillPlayInterstitial() && sNoAdsShowCount < SHOW_NOADS_MAX_COUNT) { if ((sInterstitialShowCount > TKGSDKManager.Instance.GetConfigInt(TKGParamKey.RemoveAdsShow.ToString())) && (sInterstitialShowCount % TKGSDKManager.Instance.GetConfigInt(TKGParamKey.RemoveAds.ToString()) == 0)) @@ -55,6 +56,9 @@ public static class AdsUtils Debug.Log("show interstitial normally"); TKGSDKManager.Instance.PlayInterstitialAd(pAdPos, pCallback); } +#else + TKGSDKManager.Instance.PlayInterstitialAd(pAdPos, pCallback); +#endif } public static void PlayReward(string pAdPos = "", Action pSuccessCallback = null)