First off, i am very new to unity so it may be obvious what the problem is.
I am trying to make my cube box collider switch of when a button it pressed. My Code:
var Item1 : GameObject;
function Start () {
Item1.BoxCollider.enable = false;
}
Unity keeps throwing the error “object reference not set to an instance of an object”
What am i doing wrong and how do i fix it?