public void CanTransition_ToIdle(TransitionResponse response) { // This logic below would not be present if we had a navigation + pathfinding system. // If we had navigation + pathfinding this function would instead ask the navigation system if the destination had been reached response.CanTransition = Vector3.Distance(transform.position, TargetLocation) <= LocationReachedThreshold; }
public void CanTransition_ToMoveTo(TransitionResponse response) { response.CanTransition = LocationPicked; }
public void CanTransition_ToPickLocation(TransitionResponse response) { response.CanTransition = IdleTimeRemaining <= 0f; }