// 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; }
public void OnSwipeGestureUpdate(SwipeGesture g) { //Debug.Log("Circle Update " + g.Id); SwipeGestureDisplay swipe = swipeGestures[g.Id]; if (swipe != null) { swipe.swipeGesture = g; } }
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); }