static int AddDragListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 1, typeof(UnityEngine.GameObject)); UIDragEventHandlerDetail arg1 = (UIDragEventHandlerDetail)ToLua.CheckDelegate <UIDragEventHandlerDetail>(L, 2); TouchHelper.AddDragListener(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public static void HandleMainCameraEvent(GameObject fullMask) { TouchHelper.AddDragListener(fullMask, GUIHelper.MainCameraOnDrag); TouchHelper.AddEndDragListener(fullMask, GUIHelper.MainCameraOnEndDrag); }