Tuesday, 26 August 2014

How to integrate AdDuplex banner into your Unity game (part 2)

In part 1 I’ve explained how to add AdDuplex banner into your game. In part 2 I will show you a technique I use to enable/disable the AdDuplex banner from your game.

1.  When still in Unity add a new C# script to your game, name in Interop.cs and paste the following code into it:

2.  In game when you want to enable/disable the banner call Interop.DisableAdDuplex(); or Interop.EnableAdDuplex();

3.  After you build your Unity project and add the banner (as we have discussed earlier) open MainPage.xaml.cs file and add several lines of code to constructor:

replace
with

8 comments:

  1. With the quantity of easy to use blogging interface that have multiplied on the World Wide Web nowadays, making an online journal is nothing harder for individuals.
    Design dine egne banner, Svendborg

    ReplyDelete
  2. It's very great to see your post!I like it .I'm looking forward to you in the next post.Thank you .There is a sd card recovery for mac activation code to you.

    ReplyDelete
  3. One of the additionally intriguing attractive signs was a sign molded like a drop of blood-a few of these were scattered everywhere throughout the auto.
    Magnetskilte design

    ReplyDelete
  4. Thank you for sharing this helpful post! Do you need fake ray ban sunglasses? Go to have a look and you may find a desirable one.

    ReplyDelete
  5. A portion of the truly cool recreations are Street Sesh and Skateboard City and other 3-D skateboarding diversions that are beat activity amusements are Skate Downhill and Battleboard. A few minor departure from the skateboarding kind of activity amusements are spruce up skateboarding diversions, rpg skateboarding recreations, multiplayer skateboarding amusements, and interesting skateboarding amusements. Bonuses

    ReplyDelete
  6. Awesome article Lot's of data to Read...Great Man Keep Posting and upgrade to People..Thanks Background Knockout Service Every one of the substance you said in post is too great and can be exceptionally helpful. I will remember it, much obliged for sharing the data continue redesigning, looking forward for more posts.Thanks

    ReplyDelete
  7. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! font converter

    ReplyDelete