Beispiel #1
0
    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();
    }
Beispiel #2
0
    protected override void AwakeSingleton()
    {
        waitForRewardedAdAnsweringInfo       = CreateCoroutineContainer();
        checkInternetConnectionAndShowAdInfo = CreateCoroutineContainer();

        commandQueueHandler = gameObject.GetComponent <CommandQueueMainThreadExecutor>();
        rewardedAdLoader    = new RewardedAdLoader(this, commandQueueHandler);
        InitializeRewardAdActions();
    }