Hello all,
My name is anthony faraci and I have a bit of a problem. I am currently trying to set up a cashshop system for my mmo but im unsure how I can call a javascript function in my game from a php file(this file will be the cashshop buy function). If anybody could help me out that would be nice
This page has exmaple of Brower > Player communication that might help you, although they are javascript examples not php.
One is the version NomadKing linked you.
With a javascriptfunction in your webpage you can call a function on a gameobject in unity.
And with Application.ExternalCall( “SayHello”, “The game says hello!” ); you can call a javascriptfunction on your webpage.
And your javascript stuff on your Webpage communicate with there php friends on your server.
Problem, this is not very safe because javascript is running on the users side, he can call all kind of functions you maybe don’t want him to doo, especially if it has to to with a “Shop”.
The second thing is to have a look @ wwwForm
thank you both nomadking and gamma.psh I now have an almost working cashshop