Hello everyone,
I’m currently trying to write the player class for my game, and I’m wondering which aspects of the player should be kept private, and which ones should be kept public, as in stuff like player name, player health, player xp, mana, money count, etc. And if some of these are private, should I use public or private getters and setters?
Thanks in advance!
Just think whether you will need to access it from another script, just remember that you can use
[SerializeInInspector] or @SerializeInInspector to show it in the inspector and
[HideInInspector] or @HideInInspector to hide it