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

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
Example #2
0
 static int WaitForCompletion(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         DG.Tweening.Tween            obj = (DG.Tweening.Tween)ToLua.CheckObject <DG.Tweening.Tween>(L, 1);
         UnityEngine.YieldInstruction o   = obj.WaitForCompletion();
         ToLua.PushObject(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }