protected void OnClickTips(Button obj) { //#if UNITY_EDITOR // OnTipsWatchRewardAdSuccessed(); // return; //#endif if (playerData.leftNumTips > 0) { --playerData.leftNumTips; txtLeftTips.text = playerData.leftNumTips.ToString(); OnTipsWatchRewardAdSuccessed(); } return; if (AdmobManager.GetInstance().isLoaded) { requestADButUnload = false; AdmobManager.GetInstance().UserChoseToWatchAd(OnTipsWatchRewardAdSuccessed); } else { requestADButUnload = true; PageMgr.ShowPage <UIWaitAd>(5000); } }
void OnRewardADLoadSuccess(Message msg) { PageMgr.ClosePage <UIWaitAd>(); if (requestADButUnload) { requestADButUnload = false; AdmobManager.GetInstance().UserChoseToWatchAd(OnTipsWatchRewardAdSuccessed); } }
void ShowAD() { if (AdmobManager.GetInstance().isLoaded) { requestADButUnload = false; AdmobManager.GetInstance().UserChoseToWatchAd(Next); } else { requestADButUnload = true; PageMgr.ShowPage <UIWaitAd>(5000); } }
protected void OnClickedAD(Button obj) { if (AdmobManager.GetInstance().isLoaded) { requestADButUnload = false; AdmobManager.GetInstance().UserChoseToWatchAd(OnTipsWatchRewardAdSuccessed); } else { requestADButUnload = true; PageMgr.ShowPage <UIWaitAd>(5000); } }
private void OnClickBtnADTest(string str) { if (AdmobManager.GetInstance().isLoaded) { requestADButUnload = false; AdmobManager.GetInstance().UserChoseToWatchAd(OnWatchRewardAdSuccessed_Test); } else { requestADButUnload = true; PageMgr.ShowPage <UIWaitAd>(5000); } }