예제 #1
0
        public void Complete(bool withCallback)
        {
            if (Tween == null || !Tween.IsPlaying())
            {
                return;
            }

            Tween.Complete(withCallback);
        }
예제 #2
0
    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);
    }
예제 #3
0
 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));
     }
 }
예제 #4
0
 public bool IsPaused()
 {
     return(IsValid() && !_tween.IsPlaying());
 }