コード例 #1
0
    // Swipe Lifecycle Events
    public void OnSwipeGestureStart(SwipeGesture g)
    {
        //Debug.LogWarning("Circle Start " + g.Id);
        GameObject          go    = (GameObject)GameObject.Instantiate(swipeGesturePrefab);
        SwipeGestureDisplay swipe = go.GetComponent <SwipeGestureDisplay>();

        swipe.swipeGesture  = g;
        swipeGestures[g.Id] = swipe;
    }
コード例 #2
0
    public void OnSwipeGestureUpdate(SwipeGesture g)
    {
        //Debug.Log("Circle Update " + g.Id);
        SwipeGestureDisplay swipe = swipeGestures[g.Id];

        if (swipe != null)
        {
            swipe.swipeGesture = g;
        }
    }
コード例 #3
0
    public void OnSwipeGestureStop(SwipeGesture g)
    {
        //Debug.LogError("Circle Stop " + g.Id);
        SwipeGestureDisplay swipe = swipeGestures[g.Id];

        if (swipe != null)
        {
            swipe.swipeGesture = g;
        }
        swipeGestures.Remove(g.Id);
    }