- Home /
I need "MainClass"
I am trying to integrate startapp monetization to my game. It is supported on Unity . But i need to call "AndroidSDKProvider.Init();" that fucntion on main class. But there is no main class that i know on unity. It is crashing when i call the funtion on a game object.
they say
It looks like you are getting the exception because you are not calling us from the main thread. If you call us from the main thread, the error message should disappear.
All Awake() and Start() functions are on the main thread. I suggest you make an class whose sole job is to initialize that service and then attach it to an empty GameObject in your scene. Calling their init form Awake().
Answer by Kfiro · May 04, 2013 at 03:28 PM
Hey there,
I am sure StartApp's support can help you with the integration of the unity SDK which can generate a lot of money. Contact them and they will assist you with everything.
If you still have problems with it let me know and I will send you detailed explanations. You can also follow the "StartApp's integration question" and see all the integration steps.
Hope this helps,
Kfiro
Hi
startApp updated sdk for unity and problem solved with that update. Thanks