コード例 #1
0
 public static void LevelDone()
 {
     if (AdCaller.isReady)
     {
         AdCaller.ShowAds();
     }
     else
     {
         NextLevel();
     }
 }
コード例 #2
0
 public void BallInVictoryZone()
 {
     if (ballsInVictoryZone == 0)
     {
         AdCaller.LoadAds();
     }
     ballsInVictoryZone += 1;
     Logger.UpdateContent(UILogDataType.GameState, "Balls amount: " + ballsTotal + ", balls in box: " + ballsInVictoryZone);
     if (ballsTotal == ballsInVictoryZone)
     {
         Logger.UpdateContent(UILogDataType.GameState, "Victory!!!");
         if (state == GameSessionState.InProgress)
         {
             state = GameSessionState.Won;
         }
     }
 }