private void Start() { var core = XCore.New() .UseVFS() .UseUIKit() #if !NO_ILRUNTIME .UseXILRuntime() #endif .OnServicesStartException((service, exception) => { Debug.LogError(exception); #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #endif }); core.RunAsync(err => { if (err != null) { Debug.LogError(err); } else { Debug.Log("App Started."); } }); }
private async void Start() { var core = XCore.New() //.UseVFS() .RegisterServiceProvider(new XAsset.XAssetProvider()) .UseUIKit() .UseI18N() .UseXILRuntime() .OnServicesStartException((service, err) => { // }); await core.RunAsync(); //startup TinaX Framework }