This question was
closed Apr 06, 2018 at 02:26 PM by
TreyH for the following reason:
This isn't the place for basic C# syntax questions.
Question by
unity_bfynXohQCVYnoA · Apr 06, 2018 at 02:14 PM ·
scripting problemcs1525scipt
Help me Please
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour {
public float Mermi,sarjor,sarjorsayi,menzil,hasar1,hasar2;
public bool Ates;
RaycastHit hit;
void Start () {
}
}
void Update () {
if (Input.GetMouseButton(0)) (
Ates =true;
Mermi--;
)
}
void FixedUpdate(){
if(Ates) {
Ates = false;
if(Physics:Raycast(Camera.Main.transform.position,Camera.main.transform.forward, out hit ,menzil)){
if (hit.transform.tag == "Dusman");
}
}
}
,Seems this one is all about the braces.
Remove } on line 10, add } at line 16, add { to end of line 20, on line 21 replace last character ( with {, insert } between 23 and 24. Finally add } on line 25.
Also line 22 replace last ) with ;
That should compile at first glance.
Comment