Exemplo n.º 1
0
 void GeneralCode()
 {
     if (string.IsNullOrEmpty(codeTemplate) || WindowGameObject == null || string.IsNullOrEmpty(GeneralToFolderPath))
     {
         UnityEngine.Debug.Log("配置不能为空");
         return;
     }
     GeneralWindowHelper.GenerateWindowCode(codeTemplate, WindowGameObject, childGameObjects, GeneralToFolderPath);
     AssetDatabase.Refresh();
 }
Exemplo n.º 2
0
            public MyTogItem()
            {
                Dictionary <string, string> itemTemplates      = GeneralWindowHelper.GetItemTemplates();
                ValueDropdownList <string>  csHtmlTemplatesTmp = csHtmlTemplates as ValueDropdownList <string>;

                foreach (var item in itemTemplates)
                {
                    csHtmlTemplatesTmp.Add(item.Key, item.Value);
                }
            }
Exemplo n.º 3
0
        private void SetWindowTemplate()
        {
            Dictionary <string, string> windowTemplates    = GeneralWindowHelper.GetWindowTemplates();
            ValueDropdownList <string>  csHtmlTemplatesTmp = csHtmlTemplates as ValueDropdownList <string>;

            foreach (var item in windowTemplates)
            {
                csHtmlTemplatesTmp.Add(item.Key, item.Value);
            }
        }