示例#1
0
 public UISceneConfiguration GetConfiguration(UIApplication application, UISceneSession connectingSceneSession, UISceneConnectionOptions options)
 {
     // Called when a new scene session is being created.
     // Use this method to select a configuration to create the new scene with.
     game = new TestGame();
     game.Run();
     return(UISceneConfiguration.Create("Default Configuration", connectingSceneSession.Role));
 }
示例#2
0
        public SecondScene(PastelGame game)
        {
            BackgroundColour = RgbaFloat.DarkRed;
            Game             = game;

            var rectangle = new Rectangle(new Vector2(-0.4f, 0.3f), 20);

            SceneObjects.Add(rectangle);
        }
示例#3
0
        public FirstScene(PastelGame game)
        {
            BackgroundColour = RgbaFloat.CornflowerBlue;
            Game             = game;

            var rec = new Rectangle(new Vector2(0.5f, -0.5f), 10);

            SceneObjects.Add(rec);
        }
示例#4
0
 public override void DidFinishLaunching(NSNotification notification)
 {
     game = new TestGame();
     game.Run();
 }