Metodo OnTriggerEnter unity code example
Example: respawn ontriggerenter unity code
var spawn : GameObject; function OnTriggerEnter(other : Collider) { if (other.tag == "FirstPerson-AIO") { other.gameObject.position = spawn.transform.position; } }