接入sdk初始化、激励视频广告;
This commit is contained in:
parent
f2fcd1aa8f
commit
14ba09b777
|
@ -9,7 +9,7 @@ public class InitLogic : MonoBehaviour
|
||||||
{
|
{
|
||||||
Application.targetFrameRate = 60;
|
Application.targetFrameRate = 60;
|
||||||
|
|
||||||
//TKGSDKManager.Instance.InitSDK(EnterGame);
|
TKGSDKManager.Instance.InitSDK(EnterGame);
|
||||||
EnterGame();
|
EnterGame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,10 +93,10 @@ public class EndingCell : MonoBehaviour
|
||||||
|
|
||||||
private void OnClickAdTip()
|
private void OnClickAdTip()
|
||||||
{
|
{
|
||||||
//TKGSDKManager.Instance.PlayRewardAd(Const.AdsEvtValue.UnlockSound, WatchAdSucceed, () =>
|
TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_sound_unlock, WatchAdSucceed, () =>
|
||||||
//{
|
{
|
||||||
// UIManager.Instance.OpenUI<PanelNoAdsTip>();
|
UIManager.Instance.OpenUI<PanelNoAdsTip>();
|
||||||
//});
|
});
|
||||||
WatchAdSucceed(true);
|
WatchAdSucceed(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,14 +90,14 @@ public class LevelPage : PageView
|
||||||
|
|
||||||
private void OnClickUnlockLevel(int pLevelIndex)
|
private void OnClickUnlockLevel(int pLevelIndex)
|
||||||
{
|
{
|
||||||
//TKGSDKManager.Instance.PlayRewardAd(Const.AdsEvtValue.UnlockLevel, (pResult) =>
|
TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_level_unlock, (pResult) =>
|
||||||
//{
|
{
|
||||||
// if (pResult)
|
if (pResult)
|
||||||
// {
|
{
|
||||||
// PlayerData.Instance.UnlockNewLevel(false);
|
PlayerData.Instance.UnlockNewLevel(false);
|
||||||
// LoadData(true);
|
LoadData(true);
|
||||||
// }
|
}
|
||||||
//});
|
});
|
||||||
|
|
||||||
PlayerData.Instance.UnlockNewLevel(false);
|
PlayerData.Instance.UnlockNewLevel(false);
|
||||||
LoadData(true);
|
LoadData(true);
|
||||||
|
|
|
@ -144,14 +144,14 @@ public class PanelResult : BasePanel
|
||||||
|
|
||||||
private void OnClickSkip()
|
private void OnClickSkip()
|
||||||
{
|
{
|
||||||
//TKGSDKManager.Instance.PlayRewardAd(Const.AdsEvtValue.EndSkip, (pResult) =>
|
TKGSDKManager.Instance.ShowRewardAd(TKGRVPositionName.RV_end_skip, (pResult) =>
|
||||||
//{
|
{
|
||||||
// if (pResult)
|
if (pResult)
|
||||||
// {
|
{
|
||||||
// PlayerData.Instance.UnlockNewLevel();
|
PlayerData.Instance.UnlockNewLevel();
|
||||||
// GameManager.Instance.NextLevel();
|
GameManager.Instance.NextLevel();
|
||||||
// }
|
}
|
||||||
//});
|
});
|
||||||
|
|
||||||
PlayerData.Instance.UnlockNewLevel();
|
PlayerData.Instance.UnlockNewLevel();
|
||||||
GameManager.Instance.NextLevel();
|
GameManager.Instance.NextLevel();
|
||||||
|
|
Loading…
Reference in New Issue