Example #1
0
 public AdventureScene() : base(AppDelegate.SharedWindow)
 {
     var bg = new BackgroundLayer(@"pic\1.png");
     AddChild(bg);
     var ui = new LoadingUiLayer();
     AddChild(ui);
 }
Example #2
0
 public LoadingScene(Action timeoutCallback = null, int timeout = 10) : base(AppDelegate.SharedWindow)
 {
     var bg = new BackgroundLayer(@"pic\1.png");
     AddChild(bg);
     var ui = new LoadingUiLayer(timeoutCallback, timeout);
     AddChild(ui);
 }