Пример #1
0
    static int Kill(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                obj.Kill();
                return(0);
            }
            else if (count == 2)
            {
                DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
                bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
                obj.Kill(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: DG.Tweening.Tween.Kill"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Пример #2
0
 public static void KillTween(ref DG.Tweening.Tween t, bool complete = false)
 {
     if (t != null)
     {
         t.Kill(complete);
         t = null;
     }
 }
Пример #3
0
    static int Kill(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
        bool arg0             = LuaScriptMgr.GetBoolean(L, 2);

        obj.Kill(arg0);
        return(0);
    }
Пример #4
0
        public void Stop(bool forceCompleted = false)
        {
            if (mTween != null)
            {
#if ENABLE_DOTWEEN
                mTween.Kill(forceCompleted);
#endif
                mTween = null;
            }
        }
Пример #5
0
        public void Kill()
        {
            if (_tween == null)
            {
                return;
            }

            _tween.Kill();
            _tween = null;
        }
Пример #6
0
        public virtual void Stop()
        {
            if (currentTween is null)
            {
                return;
            }

            currentTween.Kill();
            currentTween = null;
            onStopSubject.OnNext(currentTween);
        }
Пример #7
0
 static int Kill(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject(L, 1, typeof(DG.Tweening.Tween));
         bool arg0             = LuaDLL.luaL_checkboolean(L, 2);
         obj.Kill(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Пример #8
0
 public void Shoot(Vector2 dir)
 {
     this.transform.parent = null;
     this.dir = dir.normalized;
     shooting = true;
     Invoke("Kill", 0.3f);
     trailSystem.Play();
     if (fader != null)
     {
         fader.Kill();
         fader.OnComplete(() => sprite.color = Color.white);
     }
     sprite.sprite = shootingSprite;
     chargingSystem.Stop();
 }