protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); var g = new ColorzGame(); SetContentView((View)g.Services.GetService(typeof(View))); g.GameFinished += (s, a) => Process.KillProcess(Process.MyPid()); g.Run(); }
static void Main(string[] args) { using (var game = new ColorzGame()) game.Run(); }