Example #1
0
    /// <summary>
    /// Drag the object along the plane.
    /// </summary>

    void OnDrag(Vector2 delta)
    {
        if (pageView && NGUITools.GetActive(this))
        {
            pageView.drag(delta);
        }
    }
Example #2
0
 static public int drag(IntPtr l)
 {
     try {
         CardAnimation       self = (CardAnimation)checkSelf(l);
         UnityEngine.Vector2 a1;
         checkType(l, 2, out a1);
         self.drag(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }