public void Complete(bool withCallback) { if (Tween == null || !Tween.IsPlaying()) { return; } Tween.Complete(withCallback); }
static int IsPlaying(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 1); DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween"); bool o = obj.IsPlaying(); LuaScriptMgr.Push(L, o); return(1); }
static int IsPlaying(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1); bool o = obj.IsPlaying(); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
public bool IsPaused() { return(IsValid() && !_tween.IsPlaying()); }