Exemplo n.º 1
0
        public void LoadModule()
        {
            IForEachRayOriginMethods.forEachRayOrigin  = IterateRayOrigins;
            IRayToNodeMethods.requestNodeFromRayOrigin = RequestNodeFromRayOrigin;
            INodeToRayMethods.requestRayOriginFromNode = RequestRayOriginFromNode;

            var moduleLoaderCore = ModuleLoaderCore.instance;

            m_ToolModule            = moduleLoaderCore.GetModule <EditorXRToolModule>();
            m_WorkspaceModule       = moduleLoaderCore.GetModule <WorkspaceModule>();
            m_MenuModule            = moduleLoaderCore.GetModule <EditorXRMenuModule>();
            m_MiniWorldModule       = moduleLoaderCore.GetModule <EditorXRMiniWorldModule>();
            m_DirectSelectionModule = moduleLoaderCore.GetModule <EditorXRDirectSelectionModule>();
            m_SerializedPreferences = moduleLoaderCore.GetModule <SerializedPreferencesModule>();
            m_IntersectionModule    = moduleLoaderCore.GetModule <IntersectionModule>();

            var selectionModule = moduleLoaderCore.GetModule <SelectionModule>();

            if (selectionModule != null)
            {
                ignoreList = selectionModule.standardIgnoreList;
            }

            m_ModuleParent = moduleLoaderCore.GetModuleParent().transform;
        }
 public void ConnectDependency(EditorXRMenuModule dependency)
 {
     m_MenuModule = dependency;
 }