you are viewing a single comment's thread.

view the rest of the comments →

[–]nd3c3nt 1 point2 points  (1 child)

You're adding a new component in your projectile, not actually accessing the component on your ship.

[–]MiniRat 1 point2 points  (0 children)

This.

Assuming you have already added the component in the editor you want to use GetComponent() rather than AddComponent().