public EnterNamePopup(SerializedProperty tags, TagManagerInspector.EnterNamePopup.EnterDelegate cb)
{
this.EnterCB = cb;
List <string> list = new List <string>();
for (int i = 0; i < tags.arraySize; i++)
{
string stringValue = tags.GetArrayElementAtIndex(i).stringValue;
if (!string.IsNullOrEmpty(stringValue))
{
list.Add(stringValue);
}
}
this.m_NewTagName = ObjectNames.GetUniqueName(list.ToArray(), this.m_NewTagName);
}