diff --git a/Assets/Scripts/Init/InitLogic.cs b/Assets/Scripts/Init/InitLogic.cs index e3674a64..7989dc0d 100644 --- a/Assets/Scripts/Init/InitLogic.cs +++ b/Assets/Scripts/Init/InitLogic.cs @@ -9,7 +9,7 @@ public class InitLogic : MonoBehaviour { Application.targetFrameRate = 60; - //TKGSDKManager.Instance.InitSDK(EnterGame); + TKGSDKManager.Instance.InitSDK(EnterGame); EnterGame(); } diff --git a/Assets/Scripts/UI/CustomControl/EndingCell.cs b/Assets/Scripts/UI/CustomControl/EndingCell.cs index f6fc4f4d..091b1f26 100644 --- a/Assets/Scripts/UI/CustomControl/EndingCell.cs +++ b/Assets/Scripts/UI/CustomControl/EndingCell.cs @@ -93,10 +93,10 @@ public class EndingCell : MonoBehaviour private void OnClickAdTip() { - //TKGSDKManager.Instance.PlayRewardAd(Const.AdsEvtValue.UnlockSound, WatchAdSucceed, () => - //{ - // UIManager.Instance.OpenUI(); - //}); + TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_sound_unlock, WatchAdSucceed, () => + { + UIManager.Instance.OpenUI(); + }); WatchAdSucceed(true); } diff --git a/Assets/Scripts/UI/CustomControl/LevelPage/LevelPage.cs b/Assets/Scripts/UI/CustomControl/LevelPage/LevelPage.cs index cb11fef1..be66fbc8 100644 --- a/Assets/Scripts/UI/CustomControl/LevelPage/LevelPage.cs +++ b/Assets/Scripts/UI/CustomControl/LevelPage/LevelPage.cs @@ -90,14 +90,14 @@ public class LevelPage : PageView private void OnClickUnlockLevel(int pLevelIndex) { - //TKGSDKManager.Instance.PlayRewardAd(Const.AdsEvtValue.UnlockLevel, (pResult) => - //{ - // if (pResult) - // { - // PlayerData.Instance.UnlockNewLevel(false); - // LoadData(true); - // } - //}); + TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_level_unlock, (pResult) => + { + if (pResult) + { + PlayerData.Instance.UnlockNewLevel(false); + LoadData(true); + } + }); PlayerData.Instance.UnlockNewLevel(false); LoadData(true); diff --git a/Assets/Scripts/UI/PanelResult.cs b/Assets/Scripts/UI/PanelResult.cs index ed02fb51..767813c0 100644 --- a/Assets/Scripts/UI/PanelResult.cs +++ b/Assets/Scripts/UI/PanelResult.cs @@ -144,14 +144,14 @@ public class PanelResult : BasePanel private void OnClickSkip() { - //TKGSDKManager.Instance.PlayRewardAd(Const.AdsEvtValue.EndSkip, (pResult) => - //{ - // if (pResult) - // { - // PlayerData.Instance.UnlockNewLevel(); - // GameManager.Instance.NextLevel(); - // } - //}); + TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_end_skip, (pResult) => + { + if (pResult) + { + PlayerData.Instance.UnlockNewLevel(); + GameManager.Instance.NextLevel(); + } + }); PlayerData.Instance.UnlockNewLevel(); GameManager.Instance.NextLevel();