Пример #1
0
 protected override void OnCreate(Bundle bundle)
 {
     base.OnCreate(bundle);
     Game1.Activity = this;
     var g = new Game1();
     SetContentView(g.Window);
     g.Run();
 }
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Game1.Activity = this;
            m_game = new Game1();
            SetContentView(m_game.Window);

            using (var ignore = new TV.Ouya.Sdk.OuyaInputView(this, ApplicationContext))
            {
                // do nothing
            }

            m_game.Run();

            ThreadStart ts = new ThreadStart(m_game.InputWorker);
            Thread thread = new Thread(ts);
            thread.Start();
        }