Exemplo n.º 1
0
    void Start()
    {
        tracker              = gameObject.AddComponent <GestureMonitor>();
        tracker.controller   = controller;
        tracker.lineRenderer = lineRenderer;

        GenerateGestures();

        tracker.AddGestureCompleteCallback(GestureComplete);
        tracker.AddGestureFailedCallback(GestureFailed);
        tracker.AddGestureStartCallback(GestureStart);
    }
Exemplo n.º 2
0
    void Start()
    {
        tracker            = gameObject.AddComponent <GestureMonitor>();
        tracker.controller = GetComponentInChildren <IController>();

        tracker.lineRenderer = lineRenderer;

        GenerateGestures();

        tracker.AddGestureCompleteCallback(GestureComplete);
        tracker.AddGestureFailedCallback(GestureFailed);
        tracker.AddGestureStartCallback(GestureStart);

        tracker.SetTrackAllGestures(true);
        tracker.SetTrackGesture(new List <string>()
        {
            "Circle", "Triangle", "Horizontal"
        }, true);
    }