public static void LevelDone() { if (AdCaller.isReady) { AdCaller.ShowAds(); } else { NextLevel(); } }
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; } } }