static int DOAnchorMax(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3)
            {
                UnityEngine.RectTransform obj  = (UnityEngine.RectTransform)ToLua.CheckObject(L, 1, typeof(UnityEngine.RectTransform));
                UnityEngine.Vector2       arg0 = ToLua.ToVector2(L, 2);
                float arg1            = (float)LuaDLL.luaL_checknumber(L, 3);
                DG.Tweening.Tweener o = obj.DOAnchorMax(arg0, arg1);
                ToLua.PushObject(L, o);
                return(1);
            }
            else if (count == 4)
            {
                UnityEngine.RectTransform obj  = (UnityEngine.RectTransform)ToLua.CheckObject(L, 1, typeof(UnityEngine.RectTransform));
                UnityEngine.Vector2       arg0 = ToLua.ToVector2(L, 2);
                float arg1            = (float)LuaDLL.luaL_checknumber(L, 3);
                bool  arg2            = LuaDLL.luaL_checkboolean(L, 4);
                DG.Tweening.Tweener o = obj.DOAnchorMax(arg0, arg1, arg2);
                ToLua.PushObject(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RectTransform.DOAnchorMax"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #2
0
 protected override Tween DOPlay()
 {
     if (null == m_RectTransform)
     {
         return(null);
     }
     // end if
     return(m_RectTransform.DOAnchorMax(m_toAnchorMax, m_duration, m_isSnapping));
 }