Where exactly does the box collder get added as a component in the script?
For me if the script just stated “gameObject.AddComponent ();” I could understand how this on its own adds the collider to “this” (each enemy ship “this” script is attached too) gameObject. But how does " Collider enemyShipCollider = gameObject.AddComponent ();" add the collider to “this” gameObject. To me it seems like the collider is added to the variable “enemyShipCollider” and not the actual enemy ship gameObject.
Love the course, and the wording of the above indicates I must be learning something…lol.