I’m trying to activate the fire when the character enters a collider zone, but with this it only goes off at start and wont start when i enter the collision area
#pragma strict
function Start () {
gameObject.SetActive(false);
}
function OnTriggerEnter (other : Collider) {
gameObject.SetActive(true);
}
- I’m using camera with rigid body
- Is trigger is checked