Beispiel #1
0
        public static bool SetChargeBehaviorValues_Prefix(Agent unit)
        {
            if (Utility.ShouldChargeToFormation(unit))
            {
                UnitAIBehaviorValues.SetUnitAIBehaviorWhenChargeToFormation(unit);
                return(false);
            }

            return(true);
        }
        public static bool SetChargeBehaviorValues_Prefix(Agent unit)
        {
            if (unit.Formation != null && unit.Formation.MovementOrder.OrderType == OrderType.ChargeWithTarget)
            {
                UnitAIBehaviorValues.SetUnitAIBehaviorWhenChargeToFormation(unit);
                return(false);
            }

            return(true);
        }