/// <summary>
 /// Ad loaded callback
 /// </summary>
 /// <param name="ad"></param>
 public void OnAdLoaded(IAd ad)
 {
     try
     {
         // Show the ad
         InterstitialAd?.Show();
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
     }
 }
Пример #2
0
 /// <summary>
 /// Ad loaded callback
 /// </summary>
 /// <param name="ad"></param>
 public void OnAdLoaded(IAd ad)
 {
     try
     {
         // Show the ad
         InterstitialAd?.Show();
         Console.WriteLine(Activity);
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Пример #3
0
            public override void OnAdLoaded()
            {
                try
                {
                    base.OnAdLoaded();

                    if (Ad != null && Ad.IsLoaded)
                    {
                        Ad?.Show();
                    }
                }
                catch (Exception exception)
                {
                    Methods.DisplayReportResultTrack(exception);
                }
            }
 public void ShowAd()
 {
     interstitialAd.Show();
     returnToScene = false;
 }
Пример #5
0
 private void HandleOnAdLoaded(object a, EventArgs args)
 {
     interstitial.Show();
 }
 private void OnAdReady(object sender, object e)
 {
     interstitialAd.Show();
 }
Пример #7
0
 public void OnAdLoaded(object sender, System.EventArgs args)
 {
     ad.Show();
 }
Пример #8
0
    void OnGUI()
    {
        stringToEdit = GUILayout.TextArea(stringToEdit, 200, GUILayout.Width(300), GUILayout.Height(100));

        if (GUILayout.Button("Beluga Login Page", GUILayout.Width(200), GUILayout.Height(50)))
        {
            string appid         = "fanadv3";
            string apikey        = "4fbc7b551f8ab63d4dadd8694ff261bf";
            string packageID     = "com.hosengamers.chee";
            bool   inMaintain    = false;
            string dialogTitle   = "Warnings";              // if inMaintain is false setDialog title null
            string dialogMessage = "server in maintain..."; // if inMaintain is false setDialog message null
            DJBeluga.GetInstance().AuthClient(appid, apikey, GameLogobytes, packageID, inMaintain, dialogTitle, dialogMessage);
        }

        if (GUILayout.Button("gooogle pay", GUILayout.Width(200), GUILayout.Height(50)))
        {
            string SKU_GAS  = "beluga.gold";
            string base64   = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn2J6q0hd9FhArBYBcKSJabarKunSudfg/LUAwstUY/6UN581eoXEKBo7U2Kd2IA1GaAAXS3vAx4Nv9DAJrurBNof6JpCaEKjhzHLI8TWRqXh77K9dwM8mNMBnN83pP05pRLOMUz33Q/gd1wpQgFzumjl2ai/wAaIqb2YLCvOCUKPIBz5F4RedIySdMfSvIVsDt1FrIOxmPgyL7PFfU42nJMGle7o01hB+vvcMoOaOJu6Kmjkgbru6X6TRWXFfVXY/27iTbCmF1ASsS6btJgQAZr49Km23lZUlV4T+Po9CFfy04PS+uBXJvleUJPuKQe4GMLtcEfUkhQDZpllUvEI7wIDAQAB";
            string UserId   = "1030176"; //user id
            string serverId = "server1";
            string role     = "leo";
            string orderId  = "order123";
            DJBeluga.GetInstance().GooglePayment(SKU_GAS, base64, UserId, serverId, role, orderId);
        }
        if (GUILayout.Button("MOL", GUILayout.Width(200), GUILayout.Height(50)))
        {
            string user_id   = "1000005";
            string game_id   = "04101786";
            string app_id    = "herinv";
            string PackageID = "com.beluga";
            string server_id = "999";
            string role      = "leo";
            DJBeluga.GetInstance().MOLPayment(user_id, game_id, app_id, PackageID, server_id, role);
        }
        if (GUILayout.Button("Mycard small pay", GUILayout.Width(200), GUILayout.Height(50)))
        {
            string apikey    = "412c1bd510967dce3b050842a35fae18";
            string appid     = "kilmasa";
            string uid       = "1040714";
            string server_id = "Server1";
            string role      = "leo";
            string itemId    = "Testing";
            string orderId   = "Order123";
            DJBeluga.GetInstance().MyCardSmallPayment(apikey, appid, uid, server_id, role, itemId, orderId);
        }
        if (GUILayout.Button("MyCard s number", GUILayout.Width(200), GUILayout.Height(50)))
        {
            string apikey    = "412c1bd510967dce3b050842a35fae18";
            string appid     = "kilmasa";
            string uid       = "1040714";
            string server_id = "Server1";
            string role      = "leo";
            string itemId    = "Testing";
            string orderId   = "Order123";
            DJBeluga.GetInstance().MyCardSerialNumberPayment(apikey, appid, uid, server_id, role, itemId, orderId);
        }

        if (GUILayout.Button("FB app invite", GUILayout.Width(200), GUILayout.Height(50)))
        {
            DJBeluga.GetInstance().fbAppInvite("", "");
        }

        if (GUILayout.Button("FB game invite", GUILayout.Width(200), GUILayout.Height(50)))
        {
            DJBeluga.GetInstance().fbGameInvite("hello", "hello");
        }

        if (GUILayout.Button("FB share", GUILayout.Width(200), GUILayout.Height(50)))
        {
            DJBeluga.GetInstance().fbShare("", "", "", "");
        }

        if (GUILayout.Button("Interstitial", GUILayout.Width(200), GUILayout.Height(50)))
        {
            if (ADLB.IsLoaded())
            {
                ADLB.Show();
            }
        }

        if (GUILayout.Button("gpg", GUILayout.Width(200), GUILayout.Height(50)))
        {
            print("test obj:" + gpgService);
            gpgService.create();
        }

        if (GUILayout.Button("gpg Login", GUILayout.Width(200), GUILayout.Height(50)))
        {
            gpgService.signin();
        }

        if (GUILayout.Button("gpg logout", GUILayout.Width(200), GUILayout.Height(50)))
        {
            gpgService.signout();
        }

        if (GUILayout.Button("gpg showAchievements", GUILayout.Width(200), GUILayout.Height(50)))
        {
            gpgService.showAchievements();
        }

        if (GUILayout.Button("gpg showLeaderboards", GUILayout.Width(200), GUILayout.Height(50)))
        {
            gpgService.showLeaderboards();
        }

        if (GUILayout.Button("gpg unlockAchievements", GUILayout.Width(200), GUILayout.Height(50)))
        {
            string achievements_id = "CgkI1beZi9MBEAIQAQ";
            gpgService.unlockAchievements(achievements_id);
        }

        if (GUILayout.Button("gpg unlockLeaderboards", GUILayout.Width(200), GUILayout.Height(50)))
        {
            string leaderboards_id = "CgkI1beZi9MBEAIQBw";
            long   score           = 1337;
            gpgService.unlockLeaderboards(leaderboards_id, score);
        }
    }
Пример #9
0
 public void showAds()
 {
     interstitial.Show();
 }
Пример #10
0
 public void showInterstitial()
 {
     interstitial.Show();
 }
Пример #11
0
 public void LoadAd()
 {
     interstitial.Show();
     interstitial.Destroy();
     RequestInterstitial();
 }
Пример #12
0
 public void showAds()
 {
     interstitial.Show();
     Debug.Log("Show interstitial ad");
 }
Пример #13
0
 public void HandleInterstitialOnAdLoaded(object sender, EventArgs args)
 {
     Debug.Log("HandleInterstitialOnAdLoaded event received");
     interstitialAd.Show();
 }
 public void HandleInterstitialLoaded(object sender, EventArgs args)
 {
     interstitial.Show();
     print("HandleInterstitialLoaded event received.");
 }
Пример #15
0
    public void ShowInterstitial()
    {
        interstitialADMOB.Show();

        PrecacheNextInterstitial();
    }
Пример #16
0
 public static void ShowAd()
 {
     interstitialAd.Show();
 }
Пример #17
0
 private void Interstitial_OnAdLoaded(object sender, System.EventArgs e)
 {
     interstitial.Show();
 }
Пример #18
0
 public void on_show()
 {
     _interstitial.Show();
 }
Пример #19
0
 public void MostrarAnuncio()
 {
     anuncio.Show();
     anuncio.Destroy();
     PedirInterstitial();
 }
Пример #20
0
 public void ShowInters()
 {
     interstitial.Show();
 }
Пример #21
0
 public void ShowFullAdmod()
 {
     interstitial.Show();
     LoadFullAdmob();
 }
 public void ShowInterstitial()
 {
     m_interstitialAd.Show();
 }
 public void OnAdLoaded(IAd p0)
 {
     Console.WriteLine("");
     interstitialAd.Show();
 }
Пример #24
0
 public void ShowFrontAd()
 {
     Debug.Log("FrontAd");
     frontAd.Show();
     LoadFrontAd();
 }
Пример #25
0
 public void ShowRegularAd()
 {
     ad.Show();
 }
Пример #26
0
 private void OnInterstitalLoaded(object sender, EventArgs args)
 {
     m_interstitial.Show();
 }
Пример #27
0
    public void Intestinal_Ad_Show()
    {
        InterstitialAd l_interAd = AdmobManager.Get <InterstitialAd>("Interstitial_1");

        l_interAd.Show();
    }
Пример #28
0
 private static void OnInterstitialLoaded(object sender, System.EventArgs args)
 {
     _ad_interstitial.Show();
 }
Пример #29
0
 private void OnAdLoaded(object sender, EventArgs e)
 {
     ad.Show();
 }
Пример #30
0
 public void Show()
 {
     _ad.Show();
 }