function OnControllerColliderHit (other : ControllerColliderHit) {
if(other.gameObject.tag == "zombie"){
Application.LoadLevel(0);
}
}
This does nothing. The other object is tagged correctly, and no errors. but nothing happens.
function OnControllerColliderHit (other : ControllerColliderHit) {
if(other.gameObject.tag == "zombie"){
Application.LoadLevel(0);
}
}
This does nothing. The other object is tagged correctly, and no errors. but nothing happens.
You are missing a ( before “zombie”
I think it should be like this.
if(other.gameObject.tag == ("zombie")){
That wouldnt make a difference
If you want the zombie to collide with the player and change levels do OnTriggerEnter. Set zombie as a trigger.
How are you wishing to transition to the next level?
if player and zombie are BOTH character controllers, they cannot collide.