android - Unity 5 Chartboost Black screen -
i have implemented chartboost game. advert showing up, if close it, there no problem. if press button no problem. if press on advert , press button, or go app screen goes black. can hear background music going, can still play game display black.
i use: unity 5.0.2f1 (64-bit) cbunityplugin_5_5_3
i'm testing on android 5.0.2 phone , 4.4.4 tablet result same.
bool shoulddisplayinterstitial(cblocation location) { return true; } void diddisplayinterstitial(cblocation location) {} void didcacheinterstitial(cblocation location) {} void didfailtoloadinterstitial(cblocation location, cbimpressionerror error) {} void diddismissinterstitial(cblocation location) {} void didcloseinterstitial(cblocation location) {} void didclickinterstitial(cblocation location) { application.loadlevel("main_menu"); } void ondisable() { chartboost.didfailtoloadinterstitial -= didfailtoloadinterstitial; chartboost.diddismissinterstitial -= diddismissinterstitial; chartboost.didcloseinterstitial -= didcloseinterstitial; chartboost.didclickinterstitial -= didclickinterstitial; chartboost.didcacheinterstitial -= didcacheinterstitial; chartboost.shoulddisplayinterstitial -= shoulddisplayinterstitial; chartboost.diddisplayinterstitial -= diddisplayinterstitial; } void onenable() { chartboost.didfailtoloadinterstitial += didfailtoloadinterstitial; chartboost.diddismissinterstitial += diddismissinterstitial; chartboost.didcloseinterstitial += didcloseinterstitial; chartboost.didclickinterstitial += didclickinterstitial; chartboost.didcacheinterstitial += didcacheinterstitial; chartboost.shoulddisplayinterstitial += shoulddisplayinterstitial; chartboost.diddisplayinterstitial += diddisplayinterstitial; } and in update loop
if (adcall) { variable.dieinc(); if (variable.getdie() == 3) { if (chartboost.hasinterstitial(cblocation.default)) { chartboost.showinterstitial (cblocation.default); } variable.resetdie(); } adcall = false; } is else have same effect?
looking forward answers
i solved same issue commenthing ongui() function in chartboost.cs script.
i hope not late!
This comment has been removed by the author.
ReplyDelete