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

What this error?

$
0
0
I wrote C# script like this but, I got these error.... How can I solve this problem??? using UnityEngine; using System.Collections; public class Camera_M : MonoBehaviour { public GameObject Player; // Use this for initialization void Start () { transform.position = Player.transform.position; } // Update is called once per frame void Update () { transform.position = Player.transform.position; } } NullReferenceException: Object reference not set to an instance of an object Camera_M.Update () (at Assets/Scripts/Camera_M.cs:18) NullReferenceException: Object reference not set to an instance of an object Camera_M.Update () (at Assets/Scripts/Camera_M.cs:18)

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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