Code: Select all
var enemies = new List<FactionMember>();
foreach (var kvp in FactionManager.instance.members)
{
var faction = kvp.Key;
var members = kvp.Value;
if (FactionManager.instance.GetAffinity(faction.name, "Player") < 0)
{
enemies.AddRange(members);
}
}