Exemple #1
0
        protected override Tween DOPlay()
        {
            if (null == m_Rigidbody)
            {
                return(null);
            }
            // end if
            switch (m_MoveType)
            {
            case MoveTypeEnum.Move:
                return(m_Rigidbody.DOMove(m_toPosition, m_duration, m_isSnapping));

            case MoveTypeEnum.MoveX:
                return(m_Rigidbody.DOMoveX(m_toMoveX, m_duration, m_isSnapping));

            case MoveTypeEnum.MoveY:
                return(m_Rigidbody.DOMoveY(m_toMoveY, m_duration, m_isSnapping));

            case MoveTypeEnum.MoveZ:
                return(m_Rigidbody.DOMoveZ(m_toMoveZ, m_duration, m_isSnapping));

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