static int DOPivotY(IntPtr L) { try { ToLua.CheckArgsCount(L, 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.DOPivotY(arg0, arg1); ToLua.PushObject(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
protected override Tween DOPlay() { if (null == m_RectTransform) { return(null); } // end if switch (m_pivotType) { case PivotTypeEnum.Pivot: return(m_RectTransform.DOPivot(m_toPivot, m_duration)); case PivotTypeEnum.PivotX: return(m_RectTransform.DOPivotX(m_toPivotX, m_duration)); case PivotTypeEnum.PivotY: return(m_RectTransform.DOPivotY(m_toPivotY, m_duration)); default: return(null); } // end switch }