コード例 #1
0
 /// <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
ファイル: AdsFacebook.cs プロジェクト: gdsghost/BasedOnRate
 /// <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);
                }
            }
コード例 #4
0
 public void ShowAd()
 {
     interstitialAd.Show();
     returnToScene = false;
 }
コード例 #5
0
ファイル: Admob.cs プロジェクト: FurionTheGreatest/SlotsTest
 private void HandleOnAdLoaded(object a, EventArgs args)
 {
     interstitial.Show();
 }
コード例 #6
0
 private void OnAdReady(object sender, object e)
 {
     interstitialAd.Show();
 }
コード例 #7
0
ファイル: GameScript.cs プロジェクト: Tnxah/Clickoshenko
 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
ファイル: AdsControl.cs プロジェクト: mengtest/SkyBattleAdMob
 public void showAds()
 {
     interstitial.Show();
 }
コード例 #10
0
 public void showInterstitial()
 {
     interstitial.Show();
 }
コード例 #11
0
 public void LoadAd()
 {
     interstitial.Show();
     interstitial.Destroy();
     RequestInterstitial();
 }
コード例 #12
0
ファイル: AdsControl.cs プロジェクト: tozik/LazyPirate
 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();
 }
コード例 #14
0
 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
ファイル: LoadAd.cs プロジェクト: mramadhanrh/360-Project
 public void ShowInters()
 {
     interstitial.Show();
 }
コード例 #21
0
 public void ShowFullAdmod()
 {
     interstitial.Show();
     LoadFullAdmob();
 }
コード例 #22
0
 public void ShowInterstitial()
 {
     m_interstitialAd.Show();
 }
コード例 #23
0
 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
ファイル: GameAds.cs プロジェクト: torbiq/Cubed
 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();
 }