예제 #1
0
    static int set_rightOrDown(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.UIScrollTips        obj  = (UI.UIScrollTips)o;
            UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
            obj.rightOrDown = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rightOrDown on a nil value" : e.Message));
        }
    }
예제 #2
0
    static int get_rightOrDown(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UI.UIScrollTips        obj = (UI.UIScrollTips)o;
            UnityEngine.GameObject ret = obj.rightOrDown;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rightOrDown on a nil value" : e.Message));
        }
    }
예제 #3
0
 public void SwitchToItem(int index)
 {
     UIScrollTips.ScrollPos(m_scroll, index);
 }