コード例 #1
0
ファイル: ADManager.cs プロジェクト: hooei/BrainCube
 public void ToShow(bool direct = false)
 {
     if (direct)
     {
         ADManager.ShowInterstitialAD(this.percent);
     }
     else
     {
         adShowed = false;
     }
 }
コード例 #2
0
ファイル: ADManager.cs プロジェクト: hooei/BrainCube
 public void Update()
 {
     if (!adShowed)
     {
         adTimer += Time.deltaTime;
         if (adTimer > delay)
         {
             ADManager.ShowInterstitialAD(this.percent);
             adShowed = true;
         }
     }
 }