No Damage dealt to enemy

these are my codes

EnemyLogic:

#pragma strict

var Health = 100;

function ApplyDamage (TheDamage : int)
{
   Health -= TheDamage;
}

This is my other code for melee:

#pragma strict

var TheDamage : int = 50;
var MaxDistance : float = 1.5;
var Distance : float;

function Update ()
{   
    if (Input.GetButtonDown("Fire1"))
    {      
        var hit : RaycastHit;
        if (Physics.Raycast (transform.position, transform.TransformDirection(Vector3.forward), hit))
        {
            Distance = hit.distance;
            if (Distance < MaxDistance)
            {
            hit.transform.SendMessage("Apply.Damage", TheDamage, SendMessageOptions.DontRequireReceiver);
            }
        }   
    } 
}

It all works except i do no damage?

Shouldn’t it be just

hit.transform.SendMessage(“ApplyDamage”, TheDamage, SendMessageOptions.DontRequireReceiver);

I mean without the dot between Apply and Damage