AppUIDelegate.cs 520 B

123456789101112131415161718192021222324
  1. using Foundation;
  2. using UIKit;
  3. using System.Threading.Tasks;
  4. using AtomicEngine;
  5. namespace AtomicPlayer
  6. {
  7. [Register("AppUIDelegate")]
  8. public partial class AppUIDelegate : UIApplicationDelegate
  9. {
  10. public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  11. {
  12. LaunchGame();
  13. return true;
  14. }
  15. async void LaunchGame()
  16. {
  17. await Task.Yield();
  18. Application.Run<AtomicMain>(new string[0]);
  19. }
  20. }
  21. }