Esempio n. 1
0
    void Start()
    {
        bezierPointer = GetComponent <VRTK_BezierPointer> ();
        simplePointer = GetComponent <SimplePointer_Draw> ();

        Events.ShowUI += OverUI;
    }
Esempio n. 2
0
 /// <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));
 }