private void RegisterMonoBehaviours(GameObject obj, IDIContext sceneContext, IRemoteObjectsRecord ror) { ContextMonoBehaviour[] behaviours = obj.GetComponents <ContextMonoBehaviour>(); foreach (ContextMonoBehaviour mb in behaviours) { sceneContext.InjectDependencies(mb); } }