i am new to unity and trying to do melee script and got 5 errors please help here is my script
#pragma strict
var dammage : int = 75;
var distance : float;
function Update ()
{
if (Input.GetButtonDown("Fire1"))
{
var hit : RaycastHit;
if (Physics.Raycast (transform.position, transform.forward, hit))
{
distance = hit.distance;
hit.transform.sendMessage("ApplyDammage"), dammage, SendMessageOptions.DontRequireReceiver);
{
{
{