public FactionRelation GetRelationWith(Faction other) { if ((other == this) || (AllyCollection.Contains(other))) return FactionRelation.Ally; if (NeutralCollection.Contains(other)) return FactionRelation.Neutral; if (EnemyCollection.Contains(other)) return FactionRelation.Enemy; return FactionRelation.None; }
public void Select(Faction selectedBy) { SelectionSprite.color = Faction.GetRelationWith(selectedBy).GetColor(); Selection.SetActive(true); }