public GameObjectSingletonLazyCreator(
            DiContainer container, GameObjectSingletonProviderCreator owner, SingletonId id)
        {
            Assert.That(id.ConcreteType.DerivesFrom<Component>());

            _container = container;
            _owner = owner;
            _id = id;
        }
        public GameObjectSingletonLazyCreator(
            DiContainer container, GameObjectSingletonProviderCreator owner, SingletonId id)
        {
            Assert.That(id.ConcreteType.DerivesFrom <Component>());

            _container = container;
            _owner     = owner;
            _id        = id;
        }
Пример #3
0
        public SingletonProviderCreator(
            DiContainer container, SingletonRegistry singletonRegistry)
        {
            _typeSingletonProviderCreator     = new TypeSingletonProviderCreator(container, singletonRegistry);
            _methodSingletonProviderCreator   = new MethodSingletonProviderCreator(singletonRegistry);
            _instanceSingletonProviderCreator = new InstanceSingletonProviderCreator(container, singletonRegistry);
            _factorySingletonProviderCreator  = new FactorySingletonProviderCreator(container, singletonRegistry);

#if !ZEN_NOT_UNITY3D
            _prefabResourceSingletonProviderCreator = new PrefabResourceSingletonProviderCreator(container, singletonRegistry);
            _prefabSingletonProviderCreator         = new PrefabSingletonProviderCreator(container, singletonRegistry);
            _monoBehaviourSingletonProviderCreator  = new MonoBehaviourSingletonProviderCreator(container, singletonRegistry);
            _gameObjectSingletonProviderCreator     = new GameObjectSingletonProviderCreator(container, singletonRegistry);
#endif
        }