Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

i get error cs1519 please help it says this assets/begin/my scripts/shoot.cs(9,15): error cs1519 : unexpected symbol ' private ' in class, struct, or interface member decleration

$
0
0
using UnityEngine; using System.Collections; namespace Chapter1 { public class Shoot : MonoBehaviour { private float fireRate = 0.3f private float nextFire; // Use this for initialization void Start() { } // Update is called once per frame void Update() { CheckForInput(); } void CheckForInput() { if (Input.GetKey(KeyCode.Mouse0) && Time.time > nextFire) { nextFire = Time.time + fireRate; Debug.Log("Key Pressed"); } } } }

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>