示例#1
0
 private void OnDestroy()
 {
     trigger_src    = null;
     menu_src       = null;
     padClicked_src = null;
     padTouched_src = null;
     gripped_src    = null;
 }
示例#2
0
        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));
        }