Beispiel #1
0
    // 準備ができたら広告を再生する
    IEnumerator PlayAdsense()
    {
        GameObject ob = GameObject.Find("AdfurikunMovieRewardUtility");
        AdfurikunMovieRewardUtility au = ob.GetComponent <AdfurikunMovieRewardUtility>();


        while (!au.isPreparedMovieReward())
        {
            yield return(null);
        }
        au.playMovieReward();
    }
Beispiel #2
0
    /// <summary>
    /// リワード動画再生時のアドフリ君処理
    /// </summary>
    /// <returns></returns>
    IEnumerator StartMovie()
    {
#if UNITY_EDITOR
        yield return(null);
#elif UNITY_IOS
        BgmManager.Instance.StopImmediately();
        while (!adutil.isPreparedMovieReward())
        {
            yield return(new WaitForSeconds(0.2f));
        }

        StartCoroutine(freeHint());
        adutil.playMovieReward();
#else
        //リワード動画の準備ができるまでWaitして再生開始

        while (!adutil.isPreparedMovieReward())
        {
            yield return(new WaitForSeconds(0.2f));
        }

        adutil.playMovieReward();
#endif
    }
Beispiel #3
0
        /// <summary>
        /// リワード動画再生時のアドフリ君処理
        /// </summary>
        /// <returns></returns>
        IEnumerator StartMovie()
        {
#if UNITY_EDITOR
            finishCallBack.Invoke();
            yield return(null);
#elif UNITY_IOS
            while (!adutil.isPreparedMovieReward())
            {
                yield return(new WaitForSeconds(0.2f));
            }

            SoundManger.Instance.PauseBgm(true);
            adutil.playMovieReward();
#else
            //リワード動画の準備ができるまでWaitして再生開始

            while (!adutil.isPreparedMovieReward())
            {
                yield return(new WaitForSeconds(0.2f));
            }

            adutil.playMovieReward();
#endif
        }