'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
↧