Quantcast
Channel: Answers by "Peter G"
Viewing all articles
Browse latest Browse all 90

Answer by Peter G

$
0
0
'RED' and 'BLUE' are [instance variables][1] (compare to [class/static variables][2]). You need to find the instance to access there values. The easiest way to do that is: var cube = FindObjectOfType( Cube ); cube.RED = true; [1]: http://msdn.microsoft.com/en-us/library/aa691164(v=vs.71).aspx [2]: http://msdn.microsoft.com/en-us/library/aa691162(v=vs.71).aspx

Viewing all articles
Browse latest Browse all 90

Trending Articles



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