private void OnDestroy() { trigger_src = null; menu_src = null; padClicked_src = null; padTouched_src = null; gripped_src = null; }
private void Awake() { Selector s = GetComponent <Selector>(); // Wire up events trigger_src = new XRButtonSource(this, s.GetHandler(Selector.Button.Trigger)); menu_src = new XRButtonSource(this, s.GetHandler(Selector.Button.Menu)); padClicked_src = new XRButtonSource(this, s.GetHandler(Selector.Button.PadClicked)); padTouched_src = new XRButtonSource(this, s.GetHandler(Selector.Button.PadTouched)); gripped_src = new XRButtonSource(this, s.GetHandler(Selector.Button.Gripped)); }