I have an object, and I am trying to get its transform.position from one script attached to it into another script that controls the GUI. Tried using get/set method and called that function in the GUI script but to no avail.
I’m trying to get the position of a projectile to appear on screen. I already have a transform.rotation for an object that the GUI script is attached to showing on screen.
Problem is the position of the projectile is not so easily accessible, hence I am trying to use inheritance.
Any help would be appreciated, thank you!