public override void pb_Start()
 {
     m_HighlightModule = U.Object.CreateGameObjectWithComponent <HighlightElementsModule>();
     m_GuideModule     = U.Object.CreateGameObjectWithComponent <HeightGuideModule>();
     m_AudioModule     = U.Object.CreateGameObjectWithComponent <VRAudioModule>();
     m_GuideModule.SetVisible(false);
     try { m_DirectSelectThreshold = Mathf.Max(m_DirectSelectThreshold, rayOrigin.GetComponentInChildren <DefaultProxyRay>().pointerLength * 1.3f); } catch {}
 }
示例#2
0
        public override void pb_Start()
        {
            m_ShapeBounds = ObjectUtils.CreateGameObjectWithComponent <SelectionBoundsModule>();
            m_AudioModule = ObjectUtils.CreateGameObjectWithComponent <VRAudioModule>();
            m_GridModule  = ObjectUtils.CreateGameObjectWithComponent <GridModule>();
            m_GuideModule = ObjectUtils.CreateGameObjectWithComponent <GuideModule>();
            m_GridModule.SetVisible(false);

            m_ProxyRay = ObjectUtils.Instantiate(m_ProxyRayPrefab.gameObject).GetComponent <DefaultProxyRay>();
            m_ProxyRay.transform.position      = Vector3.zero;
            m_ProxyRay.transform.localRotation = Quaternion.identity;
            m_ProxyRay.transform.SetParent(rayOrigin, false);

            //this.HideDefaultRay(rayOrigin);
            //this.LockRay(rayOrigin, this);
        }