android - Using Google Play Quests in Unity 4 -
is possible use google play games quests in versions of unity below 5? using unity 4.5.2f1, , using latest google play games plugin. when add code show quests:
playgamesplatform.instance.quests.showallquestsui( (questuiresult result, iquest quest, iquestmilestone milestone) => { // ... });
the scipts referenced(questuiresult,iques , iquesmilestone) don't exist in current context.
am doing wrong?
any appreciated, thanks.
i think should work in 4.5. issue have experienced importing sample unitypackages not work well, adding source manually worked.
from trivalquest sample, should able call like:
using googleplaygames; using googleplaygames.basicapi; using googleplaygames.basicapi.quests; public void viewquests() { debug.log("clicked:viewquests"); playgamesplatform.instance.quests.showallquestsui( (questuiresult result, iquest quest, iquestmilestone milestone) => { if (result == questuiresult.userrequestsquestacceptance) { debug.log("user requests quest acceptance"); acceptquest(quest); } if (result == questuiresult.userrequestsmilestoneclaiming) { debug.log("user requests milestone claim"); claimmilestone(milestone); } }); }
Comments
Post a Comment