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) => {