Пример #1
0
 static int setActive(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UIscroll obj = (UIscroll)ToLua.CheckObject(L, 1, typeof(UIscroll));
         obj.setActive();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #2
0
    static int get_DisableO(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIscroll obj = (UIscroll)o;
            UnityEngine.GameObject[] ret = obj.DisableO;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index DisableO on a nil value" : e.Message));
        }
    }
Пример #3
0
    static int set_EnableO(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIscroll obj = (UIscroll)o;
            UnityEngine.GameObject[] arg0 = ToLua.CheckObjectArray <UnityEngine.GameObject>(L, 2);
            obj.EnableO = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EnableO on a nil value" : e.Message));
        }
    }