Yup I managed to fix it.It appeared that the assigned variable is lost on scene reload and becomes null - so at start of the tree i set the sharedgameobject to the lastposition and the error went away..
Hi guys, Im trying to make a last seen position system and I have a problem.I have an enemyAI script that references both an empty LastSightPosition object and the player gameobject.
Inside a method i make the last sight position the same as the player position and Ive also attached a sphere to...