static int IsInitialized(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        DG.Tweening.Tween obj = (DG.Tweening.Tween)LuaScriptMgr.GetNetObjectSelf(L, 1, "DG.Tweening.Tween");
        bool o = obj.IsInitialized();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Beispiel #2
0
        // These methods are here so they can be called directly via Unity's UGUI event system

        public override void DOPlay()
        {
            Tween t = this.tween;

            if (t != null && t.IsInitialized())
            {
                t.Play();
            }
        }
Beispiel #3
0
        public void DORewindEx()
        {
            _playCount = -1;
            Tween t = this.tween;

            if (t != null && t.IsInitialized())
            {
                t.Rewind();
            }
        }
 // Token: 0x0600015D RID: 349 RVA: 0x000081F4 File Offset: 0x000065F4
 public override void DORewind()
 {
     this._playCount = -1;
     DOTweenAnimation[] components = base.gameObject.GetComponents <DOTweenAnimation>();
     for (int i = components.Length - 1; i > -1; i--)
     {
         Tween tween = components[i].tween;
         if (tween != null && tween.IsInitialized())
         {
             components[i].tween.Rewind(true);
         }
     }
 }
Beispiel #5
0
 public override void DORewind()
 {
     _playCount = -1;
     // Rewind using Components order (in case there are multiple animations on the same property)
     DOTweenAnimation[] anims = this.gameObject.GetComponents <DOTweenAnimation>();
     for (int i = anims.Length - 1; i > -1; --i)
     {
         Tween t = anims[i].tween;
         if (t != null && t.IsInitialized())
         {
             anims[i].tween.Rewind();
         }
     }
     // DOTween.Rewind(this.gameObject);
 }
Beispiel #6
0
 static int IsInitialized(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         DG.Tweening.Tween obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
         bool o = obj.IsInitialized();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }