private void AssignGlobalOrder(TacticFactory tacticFactory) { if (!_orderAssignLock.CanDoAction()) { return; } OnAggroActionDone?.Invoke(globalTacticAggro); OnTryTacticAssign?.Invoke(tacticFactory, GroupManager.Group.All); }
private void AssignOrder(TacticFactory tactic) { if (!_orderAssignLock.CanDoAction()) { return; } if (GroupsInRangeDetector.MostRepresentedGroupInRange == GroupManager.Group.None || GroupsInRangeDetector.MostRepresentedGroupInRange == GroupManager.Group.All) { return; } OnAggroActionDone?.Invoke(singleTacticAggro); OnTryTacticAssign?.Invoke(tactic, GroupsInRangeDetector.MostRepresentedGroupInRange); }