Exemplo n.º 1
0
    /* void spawn()
     * {
     *   /*if( GUI.Button( new Rect( Screen.width / 2 - 150, 0, 300, 150 ), "Banner Goster" ) )
     *        ReklamScript.BannerGoster();
     *
     *    if( GUI.Button( new Rect( Screen.width / 2 - 150, 150, 300, 150 ), "Banner Gizle" ) )
     *        ReklamScript.BannerGizle();*/
    // if ( GUI.Button( new Rect( Screen.width / 2 - 150, 300, 300, 150 ), "Interstitial Goster" ) )

    //}

    public static void BannerGoster()
    {
        if (instance == null)
        {
            return;
        }

        if (instance.bannerReklam == null)
        {
            instance.BannerReklamAl();
        }

        instance.bannerReklam.Show();
    }
Exemplo n.º 2
0
    private void Start()
    {
        OneSignal.StartInit("7994bb6b-6d39-4875-9107-6b4f6fc01d20")
        .HandleNotificationOpened(HandleNotificationOpened)
        .EndInit();

        OneSignal.inFocusDisplayType = OneSignal.OSInFocusDisplayOption.Notification;
        ReklamScript.RewardedReklamAl();
        ReklamScript.BannerReklamAl();
        ReklamScript.InterstitialReklamAl();
        Invoke("BannerAc", 0.5f);
        if (BeforeScore != 0)
        {
            CurrentScoreTextTMPro.text = BeforeScore.ToString();
            score = BeforeScore;
        }
    }