I am making a game in Unity and set up Playfab. LoginwithCustomId etc. all works fine. I tried integrating Kongregate API by follwing this guide: https://api.playfab.com/docs/tutorials/landing-players/kongregate-unity . Everything works until the script for the "KongregateHandler". When copying the script, I get a few errors becomes some things are obsolete:
Application.ExternalEval(
"if(typeof(kongregateUnitySupport) != 'undefined'){" +
" kongregateUnitySupport.initAPI('Kongregate', 'OnKongregateAPILoaded');" +
"} else {" +
" console.error('No unity support!');" +
"};"
);
//and further below
Application.ExternalEval(string.Format("console.log('{0}')", message));
I am referenced to this page https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html and I did the examples there and succesfully tested them, but I have no clue how to call those functions above, I don't know any java and can't find a solution. Any help would be greatly appreciated.