async void LaunchGame() { await Task.Yield(); using (var context = new Context()) { using (var app = new DemoApplication(context, new ApplicationOptions())) { app.Run(); } } }
public static int SdlMain(int argn, IntPtr argv) { Trace.WriteLine("MainActivity.SDLMain()"); using (var context = new Urho3DNet.Context()) { var options = new ApplicationOptions(); //var assets = Android.OS.Environment.ExternalStorageDirectory.ToString(); //options.EpResourcePrefixPaths = assets+";"+ assets+"/Assets"; using (var application = new DemoApplication(context, options)) { return(application.Run()); } } }