AppDelegate.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Foundation;
  2. using UIKit;
  3. namespace Asteroid_Belt_Assault
  4. {
  5. [Register("AppDelegate")]
  6. public partial class AppDelegate : UIApplicationDelegate
  7. {
  8. private Game1 game;
  9. public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  10. {
  11. game = new Game1();
  12. game.Run();
  13. return true;
  14. }
  15. public override void OnActivated(UIApplication application)
  16. {
  17. // Handle when your app becomes active
  18. }
  19. public override void OnResignActivation(UIApplication application)
  20. {
  21. // Handle when your app moves from active to inactive state
  22. }
  23. public override void DidEnterBackground(UIApplication application)
  24. {
  25. // Handle when your app moves to background
  26. }
  27. public override void WillEnterForeground(UIApplication application)
  28. {
  29. // Handle when your app transitions from background to foreground
  30. }
  31. public override void WillTerminate(UIApplication application)
  32. {
  33. // Handle when your app is about to terminate
  34. }
  35. }
  36. }