public void Install() { PreInstall(); //Setup scene UITestPrefabPaths paths = new DataNetUITestPrefabPaths(); Container.Bind <UITestCanvas>().FromComponentInNewPrefabResource(paths.HightMatchingCanvasPath).AsSingle().NonLazy(); Container.Bind <Camera>().FromComponentInNewPrefabResource(paths.TestCameraPath).AsSingle().NonLazy(); //Bindings Container.Bind(typeof(ExistingNetOverviewInstaller), typeof(NetSelectionElementsCreator)).FromComponentInNewPrefabResource(ResourcePaths.ExistingNetsOverviewPrefabPath).AsSingle().NonLazy(); Container.Bind <DataNetFactory>().To <DataNetFactoryImpl>().AsSingle(); Container.Bind <SelectedDataNet>().AsSingle(); Container.Bind <DataNetContainer>().To <DataNetContainerImpl>().AsSingle(); Container.Bind <PrefabFactory>().AsSingle(); Container.Bind <DataNetNameValidator>().To <DataNetNameValidatorImpl>().AsSingle(); PostInstall(); //Init Objects _overviewInstaller.transform.SetParent(_canvas.Hook, false); _container.Add(_netFactory.Create(new DataNetFactory.Parameter(_firstNetName))); _container.Add(_netFactory.Create(new DataNetFactory.Parameter(_secondNetName))); _additionalNet = _netFactory.Create(new DataNetFactory.Parameter(_additionalNetName)); }
public void Install() { PreInstall(); //Setup scene UITestPrefabPaths paths = new DataNetUITestPrefabPaths(); Container.Bind <UITestCanvas>().FromComponentInNewPrefabResource(paths.HightMatchingCanvasPath).AsSingle().NonLazy(); Container.Bind <Camera>().FromComponentInNewPrefabResource(paths.TestCameraPath).AsSingle().NonLazy(); //Bindings Container.Bind <DataNetCreationData>().AsSingle(); Container.Bind <DataNetNameInput>().FromComponentInNewPrefabResource(ResourcePaths.NetNameInputPrefabPath).AsSingle().NonLazy(); PostInstall(); //Init Objects _creationData.Error = _errorText; _input.transform.SetParent(_canvas.Hook, false); }
public void Install() { PreInstall(); //Setup scene UITestPrefabPaths paths = new DataNetUITestPrefabPaths(); Container.Bind <UITestCanvas>().FromComponentInNewPrefabResource(paths.HightMatchingCanvasPath).AsSingle().NonLazy(); Container.Bind <Camera>().FromComponentInNewPrefabResource(paths.TestCameraPath).AsSingle().NonLazy(); //Bindings Container.Bind <SelectedDataNet>().AsSingle(); Container.Bind(typeof(NetSelectionElementInstaller), typeof(SelectNetOnClick), typeof(NetNameDisplay), typeof(SceneLoaderOnClick), typeof(SceneUnloaderOnClick)).FromComponentInNewPrefabResource(ResourcePaths.NetSelectionElementPrefabPath).AsSingle().NonLazy(); DataNetFactory factory = new DataNetFactoryDummy(); Container.Bind <DataNet>().FromInstance(factory.Create(new DataNetFactory.Parameter(_netName))).AsSingle(); PostInstall(); //Init Objects _element.transform.SetParent(_canvas.Hook, false); }
public void Install() { PreInstall(); //Setup scene UITestPrefabPaths paths = new DataNetUITestPrefabPaths(); Container.Bind <UITestCanvas>().FromComponentInNewPrefabResource(paths.HightMatchingCanvasPath).AsSingle().NonLazy(); Container.Bind <Camera>().FromComponentInNewPrefabResource(paths.TestCameraPath).AsSingle().NonLazy(); //Do Bindings Container.Bind <DataNetContainer>().To <DataNetContainerImpl>().AsSingle(); Container.Bind <DataNetCreationData>().AsSingle(); Container.Bind <DataNetNameValidator>().To <DataNetNameValidatorImpl>().AsSingle(); Container.Bind <DataNetFactory>().To <DataNetFactoryImpl>().AsSingle(); Container.Bind <DataNetCreationButton>().FromComponentInNewPrefabResource(ResourcePaths.CreateNetButtonPrefabPath).AsSingle().NonLazy(); PostInstall(); //Init objects _creationButton.transform.SetParent(_canvas.Hook, false); _dataNetContainer.Add(_netFactory.Create(new DataNetFactory.Parameter(_existingNetName))); }