Ejemplo n.º 1
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     ExampleGame.ExampleGameMain.Activity = this;
     var g = new ExampleGame.ExampleGameMain();
     SetContentView(g.Window);
     g.Run();
 }
Ejemplo n.º 2
0
 protected void RunGame()
 {
     try
     {
         if(!inGame)
             switch(highlighted)
             {
                 case 0:
                     inGame = true;
                     ExampleGame.ExampleGameMain app0 = new ExampleGame.ExampleGameMain();
                     app0.Run();
                     inGame = false;
                     break;
                 case 1:
                     inGame = true;
                     TopDown.TopDownMain app1 = new TopDown.TopDownMain();
                     app1.Run();
                     inGame = false;
                     break;
                 case 2:
                     inGame = true;
                     Tron.TronMain app2 = new Tron.TronMain();
                     app2.Run();
                     inGame = false;
                     break;
                 case 3:
                     inGame = true;
                     YourGame.YourGameMain app3 = new YourGame.YourGameMain();
                     app3.Run();
                     inGame = false;
                     break;
             }
     }
     catch (Exception ex)
     {
         if (!(ex is ThreadAbortException))
         {
             //Do exception handling.
         }
     }
 }