Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

WebGL & denying browser script access to game methods?

$
0
0
**Hi**, as the title stated Im trying to figure out if I can make my methods used in the game NOT accessible from browser scripts. **Senario:** I have a game and my player object has a playerdata-field holding the currency of the player. I also have a method using either Public or Internal access flag called AddCurrency() which adds X amount of currency specified. Now, a user could send this to the game and add however much currency he wants: unityInstance.SendMessage('Player', 'AddCurrency', 999999); // Example What can I do to prevent this from happening? Any access flag Im unaware off? (Also, what is going on with the spacing in this ASK form. So broken...) Thanks in advance! Cheers, ~ N

Viewing all articles
Browse latest Browse all 2390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>