Quantcast
Channel: Answers by "Graham-Dunnett"
Viewing all articles
Browse latest Browse all 959

Answer by Graham Dunnett

$
0
0
The `MonoBehaviour` class has a member called `gameObject`. I suspect your line 12 and 27 are referring to the `MonoBehaviour` `gameObject` and not your member of `Test` which has the same name, and so is designed to be confusing. ;-) Simply rename your member to be `GO` (changing lines 6, 11, 12, 27).

Viewing all articles
Browse latest Browse all 959

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>