public override bool FinishedLaunching (UIApplication app, NSDictionary options) { game = new Game1(); game.Run(); return true; }
// Constructor public GamePage() { InitializeComponent(); _game = XamlGame<Game1>.Create("", this); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Android.Util.Log.Info ("CocosSharp", "OnCreate"); var game = new Game1(); this.SetContentView((View)game.Services.GetService(typeof(View))); game.Run(GameRunBehavior.Asynchronous); }
public override void FinishedLaunching (NSObject notification) { game = new Game1(); game.Run(); }