Example #1
0
 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 ();
 }
Example #2
0
 public World(Game1 game)
 {
     _pianotex = game.Content.Load<Texture2D> ("catpiano");
     _meow = game.Content.Load<SoundEffect>("meow1");
 }