i want a light to be off to start with then turn on when there is a collision with a tagged object here is my script
function Start() {
Orb.enabled = false;
}
var Orb : Light;
Orb.enabled = false;
function OnCollisionEnter(hit : Collision)
{
if (hit.gameObject.name == "bullet")
{
Orb.enabled = true;
}
}
the light doesn’t turn on when collision is detected how can i fix this?
any suggestions/ amendments would be great
thanks