public static bool IsOppositeTo(this GameObject obj, GameObject other) { return (obj.IsPlayerTag () && other.IsEnemyTag ()) || (obj.IsEnemyTag () && other.IsPlayerTag ()); }