Monday, January 5, 2015

Unity3D if your project is in javascript, how to use Soomla or Chartboost in C#

Okay, so my project is all written in javascript, but when I want to integrate Soomla in app purchase and also Chartboost video ads, both of them is written in C#, below is how i do it

Step 1:create another 2 scene, one for Soomla IAP, one for Chartboost

Step 2: create two button in your original javascript engine, name them "buy gems", "earn gems"
-> If "buy gems" is clicked, open the Soomla IAP scene which is written entirely in C#
-> If "earn gems" is clicked, open the Chartboost scene which is written entirely in C#

Step 3: make sure you create a "back" button on both of the C# scene so they can go back to your javascript scene

there you go, good luck...=)


No comments:

Post a Comment