Beispiel #1
0
    /// <summary>
    /// Mies the long press event handler.
    /// </summary>
    /// <param name="gesture">Gesture.</param>
    void MyLongPressEventHandler(LongPressGesture gesture)
    {
        MyGestureParameter mgp = new MyGestureParameter("longpress");

        pctrl.SetGesture(mgp);
        Vector2 v2 = new Vector2(gesture.Position.x - Screen.width / 2, gesture.Position.y - Screen.height / 2);

        uictrl.SetSpriteStatus("kuang", true, v2);
        tp.MyTakePhoto(gesture.Position);
        StartCoroutine(DisableKuang());
    }