Пример #1
0
 /// <summary>
 /// 应用程序的主入口点。
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            // Create our OpenGL view, and display it
            Game1.Activity = this;
            var g = new Game1 ();
            SetContentView (g.Window);
            g.Run ();
            //	g.Window.KeyPress += new EventHandler<View.KeyEventArgs>(Activity_KeyPress);
        }