Example #1
0
 private static void writeWindowType()
 {
     using (var fw = new FileWriter(EditorTool.UnityPathToSystemPath(WindowTypePath)))
     {
         fw.Append("namespace Framework.UI");
         fw.Append("{");
         fw.Append("    public enum WindowType");
         fw.Append("    {");
         fw.Append("        None = 0,");
         foreach (var v in windowTypes)
         {
             fw.AppendFormat("        {0},", v);
         }
         fw.Append("    }");
         fw.Append("}");
     }
 }