Ejemplo n.º 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");
        }
Ejemplo n.º 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");
        }