using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

public class Taggable : MonoBehaviour
{
    public TargetTag targetTag;

    public bool IsValidTarget(List<TargetTag> tags)
    {
        return tags.Contains(targetTag);
    }
    //private IEnumerable<TargettingTag> commonItems;
    //public bool IsValidTarget(List<TargettingTag> tags)
    //{
    //    commonItems = this.tags.Intersect(tags);
    //
    //    return commonItems.Any();
    //}
}
