Example #1
0
    public static void InsterstitialGoster()
    {
        if (instance == null)
        {
            return;
        }

        if (instance.interstitialReklam == null)
        {
            instance.InterstitialReklamYukle();
        }

        if (instance.interstitialGosterCoroutine != null)
        {
            instance.StopCoroutine(instance.interstitialGosterCoroutine);
            instance.interstitialGosterCoroutine = null;
        }

        if (instance.interstitialReklam.IsLoaded())
        {
            instance.interstitialReklam.Show();
        }
        else
        {
            if (Time.realtimeSinceStartup >= instance.interstitialIstekTimeoutZamani)
            {
                instance.InterstitialReklamYukle();
            }

            instance.interstitialGosterCoroutine = instance.InsterstitialGosterCoroutine();
            instance.StartCoroutine(instance.interstitialGosterCoroutine);
        }
    }
Example #2
0
    public static void InsterstitialGoster()
    {
        if (instance == null)
        {
            return;
        }

        if (instance.interstitialReklam == null)
        {
            instance.InterstitialReklamAl();
        }

        instance.StopCoroutine(instance.InsterstitialCoroutine());
        instance.StartCoroutine(instance.InsterstitialCoroutine());
    }