Program.cs 857 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using UIKit;
  3. using Foundation;
  4. using TransformedCollision;
  5. namespace TransformedCollision.iOS
  6. {
  7. [Register("AppDelegate")]
  8. public class AppDelegate : UIApplicationDelegate
  9. {
  10. UIWindow window;
  11. TransformedCollisionGame game;
  12. public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  13. {
  14. window = new UIWindow(UIScreen.MainScreen.Bounds);
  15. game = new TransformedCollisionGame();
  16. window.RootViewController = game.Services.GetService(typeof(UIViewController)) as UIViewController;
  17. window.MakeKeyAndVisible();
  18. game.Run();
  19. return true;
  20. }
  21. }
  22. public class Application
  23. {
  24. static void Main(string[] args)
  25. {
  26. UIApplication.Main(args, null, "AppDelegate");
  27. }
  28. }
  29. }