How can i get this script to activate when my character touches it, with out using a collision box?
#pragma strict
var target : Transform;
var smoothTime = 0.3;
private var thisTransform : Transform;
private var velocity : Vector3;
var offsetAmountx : float = 10.00;
var offsetAmounty : float = 10.00;
function Start()
{
thisTransform = transform;
}
function Update()
{
thisTransform.position.x = Mathf.SmoothDamp( thisTransform.position.x,
target.position.x +offsetAmountx,velocity.x, smoothTime);
thisTransform.position.y = Mathf.SmoothDamp( thisTransform.position.y,
target.position.y +offsetAmounty,velocity.y, smoothTime);
}