I'm working on making an object move to a destination using Nav Mesh Agent component. The destination is set when the user clicks on a point on the screen. I can get the object to move to the destination with no problem. The problem is with the "Marker" mesh that I have set up as a prefab to be created as an instance game object when the user clicks. The Marker instance runs an FSM state that detects if the player object has reached the end of it's Nav Mesh Agent destination which it uses the get property action to do. If this condition is true the Marker destroys itself. It all works fine until I build the application then the get property action gets set to none and the get & check destination state no longer works.
I have a video in case this is hard to follow:
Is there a workaround to what I'm doing here?