Пример #1
0
        private void AssignGlobalOrder(TacticFactory tacticFactory)
        {
            if (!_orderAssignLock.CanDoAction())
            {
                return;
            }

            OnAggroActionDone?.Invoke(globalTacticAggro);
            OnTryTacticAssign?.Invoke(tacticFactory, GroupManager.Group.All);
        }
Пример #2
0
        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);
        }