public MyAdManager() { IsAvailable = true; #if IMPORT_HYPERCOMMON Condition intervalFromLastInterstitialAd = ConditionFactory.IntervalFromLastInterstitialAd(30.0f, HyperCasual.Calculator.CompareOperation.Greater); Condition intervalFromOpen = ConditionFactory.IntervalFromOpen(10.0f, HyperCasual.Calculator.CompareOperation.Greater); Condition intervalFromRewardVideo = ConditionFactory.IntervalFromLastRewardAdSuccess(10.0f, HyperCasual.Calculator.CompareOperation.Greater); Condition playCountFromInstall = ConditionFactory.PlayCountFromInstall(3, HyperCasual.Calculator.CompareOperation.Greater); AllCondition GameOverAdCondition = new AllCondition(intervalFromOpen, intervalFromLastInterstitialAd); AllCondition ClearAdCondition = new AllCondition(intervalFromOpen, intervalFromLastInterstitialAd, intervalFromRewardVideo, playCountFromInstall); AdManager.Instance.SetConditionToShow(GameOverKey, GameOverAdCondition); AdManager.Instance.SetConditionToShow(StageClearKey, ClearAdCondition); #endif }