public ConditionBinder ByInstaller(Type installerType) { BindingUtil.AssertIsIInstallerType(installerType); SubFinalizer = CreateFinalizer( (container) => new SubContainerDependencyProvider( ContractType, SubIdentifier, new SubContainerCreatorByInstaller( container, installerType))); return(new ConditionBinder(BindInfo)); }
public GameObjectNameGroupNameBinder ByPrefab(Type installerType, UnityEngine.Object prefab) { BindingUtil.AssertIsValidPrefab(prefab); BindingUtil.AssertIsIInstallerType(installerType); var gameObjectInfo = new GameObjectBindInfo(); SubFinalizer = CreateFinalizer( (container) => new SubContainerDependencyProvider( ContractType, SubIdentifier, new SubContainerCreatorByPrefabWithParams( installerType, container, new PrefabProvider(prefab), gameObjectInfo.Name, gameObjectInfo.GroupName))); return(new GameObjectNameGroupNameBinder(BindInfo, gameObjectInfo)); }