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