private void BuildTemplateList()
{
List<WebTemplate> list = new List<WebTemplate>();
if (Directory.Exists(this.customTemplatesFolder))
{
list.AddRange(this.ListTemplates(this.customTemplatesFolder));
}
if (Directory.Exists(this.builtinTemplatesFolder))
{
list.AddRange(this.ListTemplates(this.builtinTemplatesFolder));
}
else
{
Debug.LogError("Did not find built-in templates.");
}
this.s_Templates = list.ToArray();
this.s_TemplateGUIThumbnails = new GUIContent[this.s_Templates.Length];
for (int i = 0; i < this.s_TemplateGUIThumbnails.Length; i++)
{
this.s_TemplateGUIThumbnails[i] = this.s_Templates[i].ToGUIContent(this.defaultIcon);
}
}