public class rtsPlayerMouseRightClickNavigation Navigation : Interaction {     private Vector3 playerTargetVector = Vector3.zero;     public void SendObjectToTargetDestination (Vector3 currentObjectPosition)    {        playerTargetVector = currentObjectPosition;        SendObjectToTargetDestination Target ();    }     public void SendObjectToTargetDestination ()    {        agent.SetDestination (playerTargetVector);        agent.Resume ();            } void Update () {        if (Input.GetMouseButtonDown (1)) {            var tempPlayerTargetVector = RtsManager.Current.ScreenPointToMapPosition(Input.mousePosition);            if (tempTarget.HasValue) {                playerTargetVector = tempPlayerTargetVector.Value;                SendObjectToTargetDestination();            }        }}}

x

Hi!
I'm Isaac!

Would you like to get a custom essay? How about receiving a customized one?

Check it out