Example #1
0
        private void DoTriggerPressed(object sender, ControllerInteractionEventArgs e)
        {
            DebugLogger(VRTK_ControllerReference.GetRealIndex(e.controllerReference), "TRIGGER", "pressed", e);
            ToggleNames Script = GameObject.FindGameObjectWithTag("GameController").GetComponent <ToggleNames>();

            Script.toggle();
        }
Example #2
0
    public void ToggleNames()
    {
        ToggleNames Script = GameObject.FindGameObjectWithTag("GameController").GetComponent <ToggleNames>();

        Script.toggle();
    }