unity ontriggerenter on a different object 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; } }