From 1af6269aef0f02131d83b82c1a9f21e7a69753e2 Mon Sep 17 00:00:00 2001 From: zhangjie0072 Date: Tue, 9 Aug 2022 11:21:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=98=AF=E5=90=A6=E8=A7=A3=E9=94=81good?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/UI/PanelGame.cs | 2 +- Assets/Scripts/UI/PanelResult.cs | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/UI/PanelGame.cs b/Assets/Scripts/UI/PanelGame.cs index 3fde50b2..81a32650 100644 --- a/Assets/Scripts/UI/PanelGame.cs +++ b/Assets/Scripts/UI/PanelGame.cs @@ -180,7 +180,7 @@ public class PanelGame : BasePanel private void OnClickEndings() { - if (!PlayerData.Instance.LevelReachGoodEnding(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel-1])) + if (!PlayerData.Instance.HasWatchedEndingAdTip(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel-1], 0)) { TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_GetTips, (_isReward) => { diff --git a/Assets/Scripts/UI/PanelResult.cs b/Assets/Scripts/UI/PanelResult.cs index 862e3396..e08c8732 100644 --- a/Assets/Scripts/UI/PanelResult.cs +++ b/Assets/Scripts/UI/PanelResult.cs @@ -61,9 +61,10 @@ public class PanelResult : BasePanel mBtnEndings.DelClick = OnClickShowEndingsDirectly; - string platform = StarkSDK.API.GetSystemInfo().platform; + #if H5_DY + string platform = StarkSDK.API.GetSystemInfo().platform; if (platform != null && platform.ToLower().Contains("ios")) { mBtnSuccShare.gameObject.SetActive(false); @@ -75,7 +76,7 @@ public class PanelResult : BasePanel mBtnShareResult.gameObject.SetActive(false); #else - mBtnSuccShare.gameObject.SetActive(false); + mBtnSuccShare.gameObject.SetActive(false); mBtnShareResult.gameObject.SetActive(true); #endif } @@ -193,7 +194,7 @@ public class PanelResult : BasePanel private void OnClickEndings() { - if (!PlayerData.Instance.LevelReachGoodEnding(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel - 1])) + if (!PlayerData.Instance.HasWatchedEndingAdTip(GameConfig.Instance.LevelSort[PlayerData.Instance.CurrentLevel - 1], 0)) { TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_GetTips, (_isReward) => {