public static bool IsEqual(GameObject aux1, GameObject aux2, StringTypeControl tagType) { if (aux1 != null && aux2 != null) { if (tagType == StringTypeControl.Name) { return(aux2.name == aux1.name); } if (tagType == StringTypeControl.Layer) { return(aux2.layer == aux1.layer); } if (tagType == StringTypeControl.Tag) { return(aux1.CompareTag(aux2.tag)); } if (tagType == StringTypeControl.Tags) { return(aux1.GetTags().SequenceEqual(aux2.GetTags())); } return(aux2.layer == aux1.layer); } return(false); }
public InfoTrigger(StringTypeControl stringType, GameObjectEvent action, bool once, bool isWait) { this.action = action; this.stringType = stringType; this.once = once; this.isWait = isWait; }