Example #1
0
        public void Init()
        {
            SwitchModeScript = GetComponent <ViveSR_Experience_SwitchMode>();

            attachPointCanvas = ViveSR_Experience.instance.AttachPoint.transform.GetChild(ViveSR_Experience.instance.AttachPointIndex).transform.gameObject;

            EffectText    = attachPointCanvas.transform.Find("TriggerCanvas/TriggerText").GetComponent <Text>();
            triggerCanvas = attachPointCanvas.transform.Find("TriggerCanvas").gameObject;

            ViveSR_Experience_ControllerDelegate.triggerDelegate  += HandleTrigger;
            ViveSR_Experience_ControllerDelegate.touchpadDelegate += HandleTouchpad;
        }
Example #2
0
 private void Awake()
 {
     StaticMeshScript = FindObjectOfType <ViveSR_Experience_StaticMesh>();
     SwitchModeScript = StaticMeshScript.SwitchModeScript;
     SemanticDrawer   = FindObjectOfType <ViveSR_Experience_SemanticDrawer>();
 }