示例#1
0
        private void QueueSceneObjectsForInject()
        {
            List <MonoBehaviour> behaviors = InjectUtils.GetInjectableMonoBehaviours(gameObject.scene);

            foreach (var behavior in behaviors)
            {
                Container.QueueForInject(behavior);
            }
        }
示例#2
0
        private void QueueChildrenAndSelfForInject()
        {
            List <MonoBehaviour> behaviors = InjectUtils.GetInjectableMonoBehaviours(gameObject);

            foreach (var behavior in behaviors)
            {
                Container.QueueForInject(behavior);
            }
        }
示例#3
0
        private void InjectGameObject(GameObject obj)
        {
            var injectables = InjectUtils.GetInjectableMonoBehaviours(obj);

            foreach (MonoBehaviour injectable in injectables)
            {
                m_container.QueueForInject(injectable);
            }

            m_container.FlushInjectQueue();
        }