var Blood : Transform;
function OnMouseDown () {
var other : RaycastHit;
if (Physics.Raycast (transform.position, Vector3.forward, 3)) {
var theClonedBlood : Transform;
if (other.collider.tag == "Person"){
theClonedBlood = Instantiate(Blood,
other.normal, transform.rotation);
print ("hi");
}
}
}
My gameObject that has this script points directly at my collider that is tagged “Person” and nothing happens! It doesnt even say hi