public bool objectHasTag (GGJTag tagToCheckFor) { if ((objectTags.Length == 0)) { return false; } foreach (GGJTag curTag in objectTags) { if (curTag.Equals (tagToCheckFor)) { return true; } } return false; }
public static bool hasMatchingTag(GGJTag tagToCheckFor, GameObject objectToCheck) { MultiTagScript mult = objectToCheck.GetComponent<MultiTagScript>(); if (mult != null) { return mult.objectHasTag(tagToCheckFor);} return false; }