var Effect : Transform;
var TheDamage = 100;
var sound : AudioClip;
5.function Update () {
if(Input.GetButtonDown(“Fire1”)){
audio.PlayOneShot(sound);
audio.Play();
}
10.
var hit : RaycastHit;
var ray : Ray = Camera.main.ScreenPointToRay(Vector3(Screen.width0.5, Screen.height0.5, 0));
if (Input.GetMouseButtonDown(0)){
if (Physics.Raycast (ray, hit, 100))
15. {
var particleClone = Instantiate(Effect, hit.point, Quaternion.LookRotation(hit.normal));
Destroy(particleClone.gameObject, 2);
hit.transform.SendMessage(“ApplyDamage”, TheDamage, SendMessageOptions.DontRequireReceiver);
}
20. }
}
that is my script but on the error bar it says unexpected char ‘f’