コード例 #1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

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

            _game.Run();
        }
コード例 #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

#if MONOGAME_4_4
            _game = new Game1();
            SetContentView((View)_game.Services.GetService(typeof(View)));

#else
            Game1.Activity = this;
			_game = new Game1();
			SetContentView(_game.Window);
#endif

            _ouyaInputView = new OuyaInputView(this);

			_game.Run();
        }