public void OnEndDrag(PointerEventData eventData)
    {
        if (dragMe != null)
        {
//			Debug.Log ("dragme OnEndDrag");
            GameObject pageLayout = mLauncherController.pageList [originLocation.pageNum];
            transform.SetParent(pageLayout.transform);
            dragMe.OnEndDrag(eventData);
            RectTransform rt      = GetComponent <RectTransform> ();
            Tweener       tweener = rt.DOAnchorPos3D(originLocation.position3D, LauncherController.ANIM_DURATION);
            tweener.OnComplete(DestroyDragMe);
        }
    }
Beispiel #2
0
 static int OnEndDrag(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DragMe obj = (DragMe)ToLua.CheckObject(L, 1, typeof(DragMe));
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
         obj.OnEndDrag(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }