**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
↧