I get the error CS1061 in unity (are you missing a using directive or an assembly reference?) : <p>The error message was like this :
'GameObject' does not contain a definition for 'Transform' and no accessible extension method 'Transform' accepting a first argument of type 'GameObject' could be found (are you missing a using directive or an assembly reference?)</p>

<p>this is my code 
(<a href="https://i.stack.imgur.com/VY6iZ.png" rel="nofollow noreferrer">https://i.stack.imgur.com/VY6iZ.png</a>)
.
.
This is my error message 
(<a href="https://i.stack.imgur.com/oMvh1.png" rel="nofollow noreferrer">https://i.stack.imgur.com/oMvh1.png</a>)</p>
