Hey guys, I’m just working on a simple game right now, and I’m sort of new to coding, and came across a Parsing Error for my Melee script
Here is what my script looks like,
var TheDamage : int = 50;
var Distance : float;
var MaxDistance : float = 1.5;
function Update ()
{
if (input.GetButtonDown("Fire1))
{
var hit : RaycastHit;
if (Physics.Raycast (transform.position, TransformDirection(Vector3.forward), hit))
{
Distance = hit.distance;
if (Distance < MaxDistance)
{
hit.transform.SendMessage(“ApplyDamage”. TheDamage, SendMessage Options.DontRequireReceiver);
}
}
}
}
And here if what the Melee Script error says,
Assets/MeleeSystem.cs(2,15): error CS8025: Parsing error
I would much appreciate it, if someone gives me a helping hand
And when I click to see where the error is occurring, it takes me to the top line