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)); }
public SecondScene(PastelGame game) { BackgroundColour = RgbaFloat.DarkRed; Game = game; var rectangle = new Rectangle(new Vector2(-0.4f, 0.3f), 20); SceneObjects.Add(rectangle); }
public FirstScene(PastelGame game) { BackgroundColour = RgbaFloat.CornflowerBlue; Game = game; var rec = new Rectangle(new Vector2(0.5f, -0.5f), 10); SceneObjects.Add(rec); }
public override void DidFinishLaunching(NSNotification notification) { game = new TestGame(); game.Run(); }