void Start() { bezierPointer = GetComponent <VRTK_BezierPointer> (); simplePointer = GetComponent <SimplePointer_Draw> (); Events.ShowUI += OverUI; }
/// <summary> /// Observable DestinationMarkerSet event /// </summary> /// <param name="events"></param> /// <returns></returns> public static IObservable <DestinationMarkerEventArgs> DestinationMarkerSetAsObservable(this VRTK_BezierPointer events) { return(Observable.FromEvent <DestinationMarkerEventHandler, DestinationMarkerEventArgs>( h => (s, e) => h(e), h => events.DestinationMarkerSet += h, h => events.DestinationMarkerSet -= h)); }