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

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

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

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

            m_container.FlushInjectQueue();
        }