Esempio n. 1
0
 // 判断自定对象是否是敌人的函数
 public static bool EnemyChecker(this ISkillWithOwner skill, BattleMapObj target) => target is Warrior && (target as Warrior).Team != skill.Owner.Team;
Esempio n. 2
0
 // 判断自定对象是否是队友的函数
 public static bool IsTeammate(this ISkillWithOwner skill, BattleMapObj target) => target is Warrior && (target as Warrior).Team == skill.Owner.Team;