public virtual void DOPlay() { InitializeTween(); if (_playOrigin) { ResetToStart(); } _sequence.SetDelay(_startDelay); _sequence.SetLoops(_loopCount, _loopType); _sequence.OnComplete(() => _onComplete?.Invoke()); _sequence.Play(); }
static int SetDelay(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { DG.Tweening.Sequence obj = (DG.Tweening.Sequence)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Sequence)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); DG.Tweening.Tween o = obj.SetDelay(arg0); ToLua.PushObject(L, o); return(1); } else if (count == 3) { DG.Tweening.Sequence obj = (DG.Tweening.Sequence)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Sequence)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); DG.Tweening.Tween o = obj.SetDelay(arg0, arg1); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Sequence.SetDelay")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _m_SetDelay(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DG.Tweening.Sequence gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { float _delay = (float)LuaAPI.lua_tonumber(L, 2); var gen_ret = gen_to_be_invoked.SetDelay(_delay); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) { float _delay = (float)LuaAPI.lua_tonumber(L, 2); bool _asPrependedIntervalIfSequence = LuaAPI.lua_toboolean(L, 3); var gen_ret = gen_to_be_invoked.SetDelay(_delay, _asPrependedIntervalIfSequence); translator.Push(L, 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 DG.Tweening.Sequence.SetDelay!")); }
static int QPYX_SetDelay_YXQP(IntPtr L_YXQP) { try { ToLua.CheckArgsCount(L_YXQP, 2); DG.Tweening.Sequence QPYX_obj_YXQP = (DG.Tweening.Sequence)ToLua.CheckObject(L_YXQP, 1, typeof(DG.Tweening.Sequence)); float QPYX_arg0_YXQP = (float)LuaDLL.luaL_checknumber(L_YXQP, 2); DG.Tweening.Tween QPYX_o_YXQP = QPYX_obj_YXQP.SetDelay(QPYX_arg0_YXQP); ToLua.PushObject(L_YXQP, QPYX_o_YXQP); return(1); } catch (Exception e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP)); } }
static int SetDelay(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); DG.Tweening.Sequence obj = (DG.Tweening.Sequence)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Sequence)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); DG.Tweening.Tween o = obj.SetDelay(arg0); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int _m_SetDelay(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DG.Tweening.Sequence __cl_gen_to_be_invoked = (DG.Tweening.Sequence)translator.FastGetCSObj(L, 1); try { { float delay = (float)LuaAPI.lua_tonumber(L, 2); DG.Tweening.Tween __cl_gen_ret = __cl_gen_to_be_invoked.SetDelay(delay); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }