The problems of Collider ....

I built a laser tower to attack enemies.

Tower Code :

var hit : RaycastHit;
Physics.Raycast(Vector3(transform.position.x, transform.position.y + 2, transform.position.z), transform.forward, hit , attackingRange);
if (hit.collider)
{
lineRenderer.SetPosition(1,Vector3(0,0,Mathf.Sqrt(attackingRange)));
print(hit.collider.gameObject.tag);
}

I can get the hit.collider.gameObject.tag is Enemy.

Enemy Code :

function OnTriggerEnter( hit : Collider)
{
  print(hit.gameObject.tag);
}

get nothing.........

why why why....??? anyone can help me??

Raycasts don't cause collisions if that's what you're getting at

If you need to tell the enemy code to do something, try using SendMessage instead, or possibly GetComponent and then call a function