/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { // Handle a Xamarin.Mac Upgrade AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs a) => { if (a.Name.StartsWith ("MonoMac")) { return typeof(MonoMac.AppKit.AppKitFramework).Assembly; } return null; }; 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 (); var g = new Game1(); SetContentView(g.Services.GetService<View>()); // this is new g.Run(); }