I have a simple script I want to deactivate a gameObject that it is attached to. This is what I have but it does not work
#pragma strict
public var SubtractOne : GameObject;
function Start () {
game.noOfHits = -1;
SubtractOne.SetActive(false);
}
function Update () {
}
Thanks
Brandon
↧