Rick is using the Awake() method to let the LevelController know that a new attacker spawned, rather than using the Start() method.
What is the reason for this?
Rick is using the Awake() method to let the LevelController know that a new attacker spawned, rather than using the Start() method.
What is the reason for this?
Hi GhostEcho,
It might be a matter of personal preference in this case. Does anything depend on the spawned attacker which gets called in Start? If not, it probably does not matter. You could test the Start method if you want.
Did this help?
See also:
Hi Nina, thanks for the quick answer!
No, nothing depends on the Start method, so that’s why I was wondering. Good to know I am not missing some deeper complexities of Unity (at least not here ).
If you have a question, please don’t hesitate to ask. Many things we do in this course are a matter of personal preference, and there is not always a rule or a deeper meaning. If you understand why somebody did something this way or the other, you will be able to find your own way how to solve problems, which should be your main goal, in my opinion.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.