コード例 #1
0
ファイル: Common.cs プロジェクト: n0mimono/Book0
 public static bool IsOppositeTo(this GameObject obj, GameObject other)
 {
     return (obj.IsPlayerTag () && other.IsEnemyTag ())
         || (obj.IsEnemyTag () && other.IsPlayerTag ());
 }