예제 #1
0
 static int ToInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UITweenLocalPositionBetween obj = (UITweenLocalPositionBetween)ToLua.CheckObject(L, 1, typeof(UITweenLocalPositionBetween));
         obj.ToInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #2
0
 static int Play(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UITweenLocalPositionBetween obj = (UITweenLocalPositionBetween)ToLua.CheckObject(L, 1, typeof(UITweenLocalPositionBetween));
         bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Play(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
    static int get_y(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenLocalPositionBetween obj = (UITweenLocalPositionBetween)o;
            float ret = obj.y;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index y on a nil value" : e.Message));
        }
    }
예제 #4
0
    static int set_z(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenLocalPositionBetween obj = (UITweenLocalPositionBetween)o;
            float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
            obj.z = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index z on a nil value" : e.Message));
        }
    }