- Home /
This post has been wikified, any user with enough reputation can edit it.
ERROR PRASING HELP!!!
using UnityEngine;
using System.Collections;
public class FP_Shooting : MonoBehaviour {
public GameObject bullet_prefab;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetButton ("Fire1")) {
Instantiate (bullet_prefab, Transform.position, Transform.rotation);
}
}
so it says that its a prasing error on the 20row but its empty can somone help me?
Comment
it's an easy error too get rid of and good practice for beginners so please try and fix it before asking for help on answers please.
Best Answer
Answer by Graham-Dunnett · Jun 22, 2014 at 08:59 PM
It's not meant to be empty. You need a closing brace, to close the open that opens the class.
Your answer
