static int DOAnchorPosY(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 3) { UnityEngine.RectTransform obj = (UnityEngine.RectTransform)ToLua.CheckObject(L, 1, typeof(UnityEngine.RectTransform)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); DG.Tweening.Tweener o = obj.DOAnchorPosY(arg0, arg1); ToLua.PushObject(L, o); return(1); } else if (count == 4) { UnityEngine.RectTransform obj = (UnityEngine.RectTransform)ToLua.CheckObject(L, 1, typeof(UnityEngine.RectTransform)); float arg0 = (float)LuaDLL.luaL_checknumber(L, 2); float arg1 = (float)LuaDLL.luaL_checknumber(L, 3); bool arg2 = LuaDLL.luaL_checkboolean(L, 4); DG.Tweening.Tweener o = obj.DOAnchorPosY(arg0, arg1, arg2); ToLua.PushObject(L, o); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.RectTransform.DOAnchorPosY")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
protected override Tween DOPlay() { if (null == m_RectTransform) { return(null); } // end if switch (m_posType) { case PosTypeEnum.Pos: return(m_RectTransform.DOAnchorPos(m_toAnchorPos, m_duration, m_isSnapping)); case PosTypeEnum.PosX: return(m_RectTransform.DOAnchorPosX(m_toAnchorPosX, m_duration, m_isSnapping)); case PosTypeEnum.PosY: return(m_RectTransform.DOAnchorPosY(m_toAnchorPosY, m_duration, m_isSnapping)); default: return(null); } // end switch }