/// <summary> /// The main entry point for the application. /// </summary> static void Main(string[] args) { using (Game1 game = new Game1()) { game.Run(); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Game1.Activity = this; var game = new Game1(); SetContentView(game.Window); game.Run(); }
public override void FinishedLaunching(MonoMac.Foundation.NSObject notification) { game = new Game1 (); game.Run (); }
void StartGame(object param) { object[] parameters = (object[])param; Game1 theGame = new Game1(); theGame.signInAs(parameters[0].ToString()); if (parameters[1] != null) { theGame.setSteveIcon(new StreamReader(parameters[1].ToString()).BaseStream); } theGame.Window.Title = "Pong"; theGame.Run(); }
static void Main() { using (var game = new Game1()) game.Run(); }