AppUIDelegate.cs 568 B

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