Ejemplo n.º 1
0
 static int OnPointerEnter(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         MoveBehaviourScript obj = (MoveBehaviourScript)ToLua.CheckObject(L, 1, typeof(MoveBehaviourScript));
         UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData));
         obj.OnPointerEnter(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 2
0
    static int set_rd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MoveBehaviourScript       obj  = (MoveBehaviourScript)o;
            UnityEngine.RectTransform arg0 = (UnityEngine.RectTransform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RectTransform));
            obj.rd = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rd on a nil value" : e.Message));
        }
    }
Ejemplo n.º 3
0
    static int get_rd(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            MoveBehaviourScript       obj = (MoveBehaviourScript)o;
            UnityEngine.RectTransform ret = obj.rd;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rd on a nil value" : e.Message));
        }
    }