so i have a gameobject with a chase script so it follows the player, and for some reason if i apply rotation to this gameobjet it breaks the chasing script so, i was thinking about rotating a child of this gameobject(which is the graphics).
at the start void i have:
graphicsTransform = transform.Find(“Graphics”).gameObject;
and then while chasing i have this:
graphicsTransform.transform.LookAt (player.transform); //this is the line where i get the ERROR:
to be honest i dont understand why it isn’t working i am kinda new to unity and scripting
ERROR: NulReferenceException: object reference not set to an instance of an object