void SetValue(float t, float d, float toValue = -1f) { if (toValue == -1f) { UpdateEvent((float)tween.Ease(t, b, c, d)); } else { UpdateEvent(toValue); } }
static int Ease(IntPtr L) { try { ToLua.CheckArgsCount(L, 5); ToLuaUIFramework.BTween obj = (ToLuaUIFramework.BTween)ToLua.CheckObject <ToLuaUIFramework.BTween>(L, 1); double arg0 = (double)LuaDLL.luaL_checknumber(L, 2); double arg1 = (double)LuaDLL.luaL_checknumber(L, 3); double arg2 = (double)LuaDLL.luaL_checknumber(L, 4); double arg3 = (double)LuaDLL.luaL_checknumber(L, 5); double o = obj.Ease(arg0, arg1, arg2, arg3); LuaDLL.lua_pushnumber(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }