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
Post a Comment