Ejemplo n.º 1
0
        protected override Tween DOPlay()
        {
            if (null == m_Transform)
            {
                return(null);
            }
            // end if
            switch (m_ScaleType)
            {
            case ScaleTypeEnum.Scale:
                return(m_Transform.DOScale(m_toScale, m_duration));

            case ScaleTypeEnum.ScaleV:
                return(m_Transform.DOScale(m_toScaleV, m_duration));

            case ScaleTypeEnum.ScaleX:
                return(m_Transform.DOScaleX(m_toScaleX, m_duration));

            case ScaleTypeEnum.ScaleY:
                return(m_Transform.DOScaleY(m_toScaleY, m_duration));

            case ScaleTypeEnum.ScaleZ:
                return(m_Transform.DOScaleZ(m_toScaleZ, m_duration));

            default: return(null);
            } // end switch
        }