private void AddCoveringGuard(GuardStateBrainPBT guard) { GenericUtilities.SafelyAddItemToList(guard, _coveringGuards); // old implementation reliant on searchmodebehaviour // guard.GetComponent<SearchModeBehaviour>().InitSearch( // this, _searchTrack.Exits[_assignedExitIndex] // ); _assignedExitIndex++; }
public void AddSearchingGuard(GuardStateBrainPBT guard) { if (_searchingInProgress) { guard.SearchPoint = GetNextSearchPoint(); } GenericUtilities.SafelyAddItemToList(guard, _searchingGuards); // if (_searchTrack.Exits.Count > 0) // { // guard.GetComponent<SearchModeBehaviour>().InitSearch( // this, _searchTrack.Exits[0] // ); // } }