public static void SetTagID(this GameObject obj, Tag.ID id) { if (obj.GetComponent <Tag>() != null) { obj.GetComponent <Tag>().iD = id; } }
public static GameObject TaggedOBJ(this GameObject obj, Tag.ID id) { if (obj.GetComponent <Tag>().iD == id) { return(obj); } else { return(null); } }
public static bool HasID(this GameObject obj, Tag.ID id) { return(id.Equals(obj.GetComponent <Tag>().iD)); }