Most of the strings in Unity are hard-coded. For example, Button "Fire1"
I don't like that we hard code the string "Fire1" inside the script directly. One day, I might change the Project Settings of that Button and I have to go and fix all of the hard coded strings.
This includes Animation Triggers, Game Object Name, Tags, etc.
What is your solution about this problem?
↧