Im trying to disable a script and play animation when coliding with an object with a tag.
#pragma strict
public var gameObject : GameObject;
function Update () {
}
function OnTriggerEnter (col : Collider) {
if(col.gameObject.tag == "Weapon") {
GameObject.GetComponent(Chase).enabled = false;
GetComponent.<Animation>().Play();
}
}