I cant get my script to work right…
when the player go out of the Boxcollider the object Girl will destroy!?!?
#pragma strict
var flame : GameObject;
function Start () {
flame.SetActive(false);
}
function OnTriggerEnter () { flame.SetActive (true); }
function OnTriggerExit () { flame.SetActive(false);
Destroy(GameObject.FindWithTag("Girl"));
}