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(); }
public void ToggleNames() { ToggleNames Script = GameObject.FindGameObjectWithTag("GameController").GetComponent <ToggleNames>(); Script.toggle(); }