I get these codes as
(3,22) BCE0043 Unexpected token: =.
(7,20) BCE0043 Unexpected token: }.
(9.9) BCE0044 expecting :, found ‘Input’.
so I can not figure it out what to do, help me. here is my script:
#pragma strict
var TheDamage = int = 50;
var Distance : float;
var MaxDistance : float = 1.5;
function Update (}
{
If Input.GetButtenDown("Fire1");
{
var hit : RaycastHit;
if (Physics.Raycast. (transform.Position, transform.TransformDirection : Vector3.Forward, hit));
Hit.Transform.sendmessage("ApplyDamage", TheDamage,SendMessageOptions.DontRecurieReciver);
}
}