public void Init() { if (isInitialized) { return; } isInitialized = true; ThreadTools.Initialize(); List <IServices> currentServices = new List <IServices> { sceneService, jsonConverter }; List <IController> controllers = new List <IController> { // new DownloadController(), }; App.Start(currentServices, controllers); // Init only after the App starts foreach (var item in controllers) { item.Init(); } if (gameObject.scene.name.Equals(sceneService.Scenes[1])) { return; } App.SceneService.LoadSceneWithVideo(1, null, 2); }
public void Init() { if (isInitialized) { return; } isInitialized = true; ThreadTools.Initialize(); List <IServices> currentServices = new List <IServices> { sceneService, jsonConverter, webLoader, new DownloadAssetBundles() }; List <IController> controllers = new List <IController> { new DownloadMetaDataFromFirebase() }; App.Start(currentServices, controllers); // Init only after the App starts foreach (var item in controllers) { item.Init(null, null); } if (gameObject.scene.name.Equals(sceneService.Scenes[1])) { return; } App.Services.SceneService.LoadSceneWithVideo(1, null, 2); }
private void Awake() { ThreadTools.Initialize(); lineRendererReal.useWorldSpace = true; lineRendererCalc.useWorldSpace = true; }