Hello I am trying to program a point-and-click advenrture game. I am receiving an error on the following script: Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManager : MonoBehaviour { public static GameManager ins; [HideInInspector] public Node currentNode; //very bad singleton void Awake() { ins = this; } void Update() { if (Input.GetMouseButtonDown(1) && currentNode.GetComponent<Prop>() != null) { currentNode.GetComponent<Prop>().loc.Arrive(); } } } Specifically I am getting the error: NullReferenceException: Object reference not set to an instance of an object GameManager.Update () (at Assets/Scripts/GameManager.cs:26)