Trying to access method from other script
"'GameObject[]' does not contain a definition for 'GetComponent' and no accessible extension method 'GetComponent' accepting a first argument of type 'GameObject[]' could be found (are you missing a using directive or an assembly reference?)"
following a 2 year old tutorial here so cant figure out the problem

10 Replies
Notice the
s

Plural
damn
It finds all components with this tag
that was an easy fix
thx
:Ok:
btw after doing this can I also change public variables for the other script from here?
$tias
But generally, yes. Once you have a reference to an instance of an object, you have access to it's public members