Timeline for Unity MonoBehaviour seems to have another scope
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 7, 2018 at 13:19 | comment | added | DMGregory♦ |
Tip: if you define your enemyGameObject variable as being of the type EnemyBehaviour to begin with, you can get your instance of the component directly from Instantate without needing to follow-up with a GetComponent call. This still instantiates the whole object and its hierarchy, not just a free-floating component.
|
|
Oct 28, 2017 at 14:53 | history | answered | fj123x | CC BY-SA 3.0 |