public void ChangeRoutingProfile(RoutingProfile profile, bool forceQuery = true) { RoutingProfile = profile; if (forceQuery) { Query(); } }
protected virtual void Awake() { routingProfile = RoutingProfile.Walking; if (_map == null) { _map = FindObjectOfType <AbstractMap>(); } _directions = MapboxAccess.Instance.Directions; _map.OnInitialized += Query; _map.OnUpdated += Query; }
void Start() { _map = MapUtils.Instance.map; _directions = MapboxAccess.Instance.Directions; switch (unitType) { case UnitType.Soldier: routingProfile = RoutingProfile.Walking; break; case UnitType.Vehicle: routingProfile = RoutingProfile.Driving; break; default: routingProfile = RoutingProfile.Driving; break; } }