I have a capsule collider with the following script on it:
var player = GameObject.Find(“Constructor”);
function OnTriggerEnter (other : Collider)
{
Debug.Log("colliding with cylinder");
player.transform.position = Vector3(9, 3, 0);
}
function OnTriggerExit (other : Collider)
{
Debug.Log(" ");
}
It works the first time but then doesn’t any time after that, any ideas why?