public RewardedAdLoader(SuperMonoBehaviour superMonoBehaviour, CommandQueueMainThreadExecutor commandQueueHandler) { this.commandQueueHandler = commandQueueHandler != null ? commandQueueHandler : throw new ArgumentNullException(nameof(commandQueueHandler)); this.superMonoBehaviour = superMonoBehaviour != null ? superMonoBehaviour : throw new ArgumentNullException(nameof(superMonoBehaviour)); tryToReLoadAdInfo = superMonoBehaviour.CreateCoroutineContainer(); CreateNewRewardedAd(); }
protected override void AwakeSingleton() { waitForRewardedAdAnsweringInfo = CreateCoroutineContainer(); checkInternetConnectionAndShowAdInfo = CreateCoroutineContainer(); commandQueueHandler = gameObject.GetComponent <CommandQueueMainThreadExecutor>(); rewardedAdLoader = new RewardedAdLoader(this, commandQueueHandler); InitializeRewardAdActions(); }