Why the square brackets?
In the manual under scripting > Scripting overview > controling GameObjects using components. The final example has a section of code that goes like this GameObject player; GameObject[] enemies;
void Start() { player = GameObject.FindWithTag("Player"); enemies = GameObject.FindGameObjectsWithTag("Enemy"); }
My question is: Why is there the [] before enemies but not before player?
Comment
Your answer
Follow this Question
Related Questions
How do I open a purchased game template from the asset store in Unity? 0 Answers
How to delete downloaded Projects 0 Answers
Is the customizable character tutorial still out there somewhere? 2 Answers
ML Agents: Use pb file in python with tensorflow to get AgentActions 0 Answers
items not adding to list 1 Answer