Why is this not working?
static var hit = "";
function OnTriggerEnter(other : Collider){
if(other.CompareTag ("Blue")){
hit = "Blue";
Debug.Log("Blue");
}
if(other.CompareTag ("Red")){
hit = "Red";
Debug.Log("Red");
}
}
I have it attached to a trigger object that follows the main camera around...