示例#1
0
 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;
 }
示例#2
0
 public void Select(Faction selectedBy)
 {
     SelectionSprite.color = Faction.GetRelationWith(selectedBy).GetColor();
     Selection.SetActive(true);
 }