Beispiel #1
0
 protected override Tween DOPlay()
 {
     if (null == m_slider)
     {
         return(null);
     }
     // end if
     return(m_slider.DOValue(m_toValue, m_duration, m_isSnapping));
 }
        static int _m_DOValue(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.Slider __cl_gen_to_be_invoked = (UnityEngine.UI.Slider)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
                {
                    float endValue = (float)LuaAPI.lua_tonumber(L, 2);
                    float duration = (float)LuaAPI.lua_tonumber(L, 3);
                    bool  snapping = LuaAPI.lua_toboolean(L, 4);

                    DG.Tweening.Tweener __cl_gen_ret = __cl_gen_to_be_invoked.DOValue(endValue, duration, snapping);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    float endValue = (float)LuaAPI.lua_tonumber(L, 2);
                    float duration = (float)LuaAPI.lua_tonumber(L, 3);

                    DG.Tweening.Tweener __cl_gen_ret = __cl_gen_to_be_invoked.DOValue(endValue, duration);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.Slider.DOValue!"));
        }