/// <summary> /// 应用程序的主入口点。 /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
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); }