hi all,
very basic question:
var PlayerScript;
var enabled : boolean;
function Update(){
if(Input.GetKeyDown("g")){
print("youpushed G");
GetComponent.PlayerScript.enabled = false;
}
}
what I thought this would do is disable the script named “PlayerScript” when the G key is down. why oh why don’t it work?
thanks!
d