/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { NSApplication.Init (); using (var game = new Game1 ()) { game.Run (); } }
protected override void OnCreate (Bundle bundle) { base.OnCreate (bundle); var g = new Game1 (); SetContentView (g.Services.GetService<View>()); g.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(); }
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(); }
internal static void RunGame() { game = new Game1(); game.Run(); }
public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) { game = new Game1 (); game.Run (); }
public override void FinishedLaunching (NSObject notification) { game = new Game1(); game.Run(); }
public override void FinishedLaunching(UIApplication app) { // Fun begins.. game = new Game1(); game.Run(); }