private void QueueSceneObjectsForInject() { List <MonoBehaviour> behaviors = InjectUtils.GetInjectableMonoBehaviours(gameObject.scene); foreach (var behavior in behaviors) { Container.QueueForInject(behavior); } }
private void QueueChildrenAndSelfForInject() { List <MonoBehaviour> behaviors = InjectUtils.GetInjectableMonoBehaviours(gameObject); foreach (var behavior in behaviors) { Container.QueueForInject(behavior); } }
private void InjectGameObject(GameObject obj) { var injectables = InjectUtils.GetInjectableMonoBehaviours(obj); foreach (MonoBehaviour injectable in injectables) { m_container.QueueForInject(injectable); } m_container.FlushInjectQueue(); }