示例#1
0
        public static void Test()
        {
            var tempFolder = Path.GetFullPath("../temp/codeGen");

            PlatformManager.Instance.CreateDirectoryIfNeed(tempFolder);
            var app = new CodeGenApp(tempFolder);

            app.Awake();

            while (app.Running)
            {
                app.Update();
                app.LateUpdate();
            }
        }
示例#2
0
        public static void Main(string[] args)
        {
            if (args.Length < 1)
            {
                Console.WriteLine("Usage: codegen <csfolder> [namespace1;namespace2]");
                return;
            }

            CodeGenApp app = new CodeGenApp(args[0], args.Length >= 2 ? args[1] : null);

            app.Awake();

            while (app.Running)
            {
                app.Update();
                app.LateUpdate();
            }
        }