public bool canRequestIdleInteractable(AnimalAI animal) { InteractableZone zone = findMyZone(animal); if (zone != null) { Interactable interactable = zone.getAvailableRallySpot(); if (interactable != null) { return(true); } } return(false); }
public Interactable requestIdleInteractable(AnimalAI animal) { InteractableZone zone = findMyZone(animal); if (zone != null) { Interactable interactable = zone.getAvailableRallySpot(); if (interactable != null) { interactable.reserve(animal); return(interactable); } } return(null); }