/// <summary> /// Get marker information if found /// </summary> private void GetMarkerInformation() { Debug.Log("Using marker"); cPosition = _marker.transform.position; cRotation = new ILocomotionSystem.TargetRotation(true, _marker.transform.forward); cStopThresh = _marker.stopThreshold; cStopThresh = Mathf.Max(cStopThresh, stopThreshold.Value); }
/// <summary> /// Get destination information if not using a marker /// </summary> private void GetDesinationInformation() { if (targetMoveTo.IsNone || targetMoveTo.Value == null) { cPosition = targetLocation.Value; Debug.Log("Using vector 3"); } else { cPosition = targetMoveTo.Value.transform.position; Debug.Log("Using transform"); } cStopThresh = stopThreshold.Value; cRotation = null; }