OnDrop() public method

public OnDrop ( PointerEventData eventData ) : void
eventData PointerEventData
return void
コード例 #1
0
    static int OnDrop(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        UIEventListener  obj  = (UIEventListener)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UIEventListener");
        PointerEventData arg0 = (PointerEventData)LuaScriptMgr.GetNetObject(L, 2, typeof(PointerEventData));

        obj.OnDrop(arg0);
        return(0);
    }
コード例 #2
0
 static int OnDrop(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UIEventListener obj = (UIEventListener)ToLua.CheckObject <UIEventListener>(L, 1);
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject <UnityEngine.EventSystems.PointerEventData>(L, 2);
         obj.OnDrop(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }