Hi it’s me Richard just letting you know that I got this message that says: "An object reference is required for the non-static field, method, or property ‘UnityEngine.Transform.position.get’ what does this all mean and how do I fix this problem? Here is my script.
1)using UnityEngine;
2)using System.Collections;
3)
4)public class FireGun : Monobehaviour {
5)
6) public GameObject bullet;
7)
8) void Start ()
9) {
10)
11) }
12)
13) void Update ()
14) {
15) if(Input.GetKey(KeyCode.Mouse0));
16) {
17) Instantiate(bullet, Transform.position, Transform.rotation);
18) }
19) }
20)}
21)
Somebody please help me out of this problem.