Пример #1
0
        static void Main(string[] args)
        {
            NSApplication.Init();

            Console.WriteLine("Starting a blocking game instance...");
            using (var pool = new NSAutoreleasePool())
            using (var game = new BlockingRunGame())
            {
                game.Run(GameRunBehavior.Synchronous);
            }

            Console.WriteLine("Starting a second blocking game instance...");
            using (var pool = new NSAutoreleasePool())
            using (var game = new BlockingRunGame())
            {
                game.Run(GameRunBehavior.Synchronous);
            }

            Console.WriteLine("Fin");
        }
Пример #2
0
        static void Main(string[] args)
        {
            NSApplication.Init();

            Console.WriteLine("Starting a blocking game instance...");
            using (var pool = new NSAutoreleasePool())
                using (var game = new BlockingRunGame())
                {
                    game.Run(GameRunBehavior.Synchronous);
                }

            Console.WriteLine("Starting a second blocking game instance...");
            using (var pool = new NSAutoreleasePool())
                using (var game = new BlockingRunGame())
                {
                    game.Run(GameRunBehavior.Synchronous);
                }

            Console.WriteLine("Fin");
        }