Exemplo n.º 1
0
        public override void Action(int instanceId, string pathName, string resourceFile)
        {
            Object o = CodeTemplates.CreateScript(pathName, resourceFile);

            ProjectWindowUtil.ShowCreatedAsset(o);
        }
 private static void CreateClass()
 {
     CodeTemplates.CreateFromTemplate(
         "NewAI.cs",
         @"Assets/scripts/CodeTemplates/Editor/Templates/AITemplate.txt");
 }