Quantcast
Channel: Answers by "Mike 3"
Viewing all articles
Browse latest Browse all 60

Answer by Mike 3

$
0
0
You're trying to use the javascript syntax in c# What you need to do is use the generic version: GetComponent().enabled = false The alternative is to use the type version (which you shouldn't really do, use the above): ((MouseLook)GetComponent(typeof(MouseLook))).enabled = false;

Viewing all articles
Browse latest Browse all 60

Trending Articles



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