同步代码

This commit is contained in:
yangjing 2022-05-30 17:31:03 +08:00
parent e4e3183a1e
commit 9102c8914c
2 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class PanelResult : BasePanel
mGobLose.SetActive(!pWin); mGobLose.SetActive(!pWin);
float tLevelFactor = ((PlayerData.Instance.CurrentLevel - 1) / 20) * 0.5f + 1; 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; mIsRolling = true;
mTxtAdCoin.text = UIUtils.NumForShort(mBaseCoin); mTxtAdCoin.text = UIUtils.NumForShort(mBaseCoin);

View File

@ -23,6 +23,7 @@ public static class AdsUtils
return; return;
} }
#if USE_IAP
if (TKGUtils.WillPlayInterstitial() && sNoAdsShowCount < SHOW_NOADS_MAX_COUNT) if (TKGUtils.WillPlayInterstitial() && sNoAdsShowCount < SHOW_NOADS_MAX_COUNT)
{ {
if ((sInterstitialShowCount > TKGSDKManager.Instance.GetConfigInt(TKGParamKey.RemoveAdsShow.ToString())) && (sInterstitialShowCount % TKGSDKManager.Instance.GetConfigInt(TKGParamKey.RemoveAds.ToString()) == 0)) 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"); Debug.Log("show interstitial normally");
TKGSDKManager.Instance.PlayInterstitialAd(pAdPos, pCallback); TKGSDKManager.Instance.PlayInterstitialAd(pAdPos, pCallback);
} }
#else
TKGSDKManager.Instance.PlayInterstitialAd(pAdPos, pCallback);
#endif
} }
public static void PlayReward(string pAdPos = "", Action pSuccessCallback = null) public static void PlayReward(string pAdPos = "", Action pSuccessCallback = null)