I have a script (and therefore a class) named GUIController (.cs), but when I try to “store” it as a variable to access it quickly, I just get Unknown identifier: ‘GUIController’ [TRY1] or The name ‘GUIController’ does not denote a valid type (‘not found’) [TRY2]
*
The code:
//Try 1
var GUIEx : Component;
function Start(){
GUIEx = GameObject.Find("Camera").GetComponent(GUIController);
GUIEx.LoadX();
}
//Try 2
var GUIEx : GUIController;
//Didn't even bother to write the code, got the error straight away