/// <summary> /// The main entry point for the application. /// </summary> static void Main() { using (var game = new WindowsGame.Common.AnGame()) { game.Run(); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new WindowsGame.Common.AnGame(); View view = (View)g.Services.GetService(typeof(View)); #if !DEBUG if (Android.OS.Build.VERSION.SdkInt >= Android.OS.BuildVersionCodes.Kitkat) { view.SystemUiVisibility = (StatusBarVisibility)(SystemUiFlags.LayoutStable | SystemUiFlags.LayoutHideNavigation | SystemUiFlags.LayoutFullscreen | SystemUiFlags.HideNavigation | SystemUiFlags.Fullscreen | SystemUiFlags.ImmersiveSticky); } #endif SetContentView(view); g.Run(); }
internal void RunGame() { game = new WindowsGame.Common.AnGame(); game.Run(); }