you can simply disable the trigger after you leave it
attach this to trigger
var myTrigger : GameObject;
var myObject : GameObject;
function Start () {
myObject.SetActive(false);
}
function OnTriggerEnter () {
myObject.setActive(false);
}
function OnTriggerExit() {
myTrigger.SetActive(false);
myObject.SetActive(false);
}
↧