protected override UnitSet Apply(UnitSet unitSet) { for (int i = 0; i < _units.Count; ++i) { var result = unitSet.SetUnit(i, _units[i].Resolve()); if (result == false) { _LOG_MANAGER.LogLine(result.reason); } } return(unitSet); }
protected override UnitSet Apply(UnitSet unitSet) { var result = unitSet.AddUnit(_newUnit.Resolve()); if (result == false) { _LOG_MANAGER.LogLine(result.reason); } else { _LOG_MANAGER.LogLine("Unit!"); } return(unitSet); }