示例#1
0
 /// <summary>
 /// 阵营关系上, this和other是否是敌对.
 /// </summary>
 public bool IsRivalCamps(BattleUnit other)
 {
     return(other != null &&
            LeagueManager.GetRelationship(GetLeague(), other.GetLeague()) == LeagueRelationship.Enemy);
 }