c# - Making a game - What is the advantage of the secure variables? -


i have made game in unity , contains lots of public , private varibles , functions. wanted game secure , bought anti cheat toolkit unity asset store https://www.assetstore.unity3d.com/en/#!/content/10395 .so question need secured private variables ? if yes, use of private variables? advantages have (in security terms) ?

do need secure private variables ?

no, both public , private variables have same security defences (or rather no security defences). if attacker can view or modify public variable, can view or modify private variable.

access modifiers there programmer convenience , architectural decisions.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -