AppDelegate.cs 573 B

12345678910111213141516171819202122
  1. using Foundation;
  2. using UIKit;
  3. using Urho;
  4. using Urho.iOS;
  5. namespace $safeprojectname$
  6. {
  7. // The UIApplicationDelegate for the application. This class is responsible for launching the
  8. // User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
  9. [Register("AppDelegate")]
  10. public class AppDelegate : UIApplicationDelegate
  11. {
  12. public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
  13. {
  14. UrhoEngine.Init();
  15. new MyGame(new Context()).Run();
  16. return true;
  17. }
  18. }
  19. }