protected override Tween DOPlay() { if (null == m_Transform) { return(null); } // end if switch (m_MoveType) { case MoveTypeEnum.Move: return(m_Transform.DOMove(m_toPosition, m_duration, m_isSnapping)); case MoveTypeEnum.MoveX: return(m_Transform.DOMoveX(m_toMoveX, m_duration, m_isSnapping)); case MoveTypeEnum.MoveY: return(m_Transform.DOMoveY(m_toMoveY, m_duration, m_isSnapping)); case MoveTypeEnum.MoveZ: return(m_Transform.DOMoveZ(m_toMoveZ, m_duration, m_isSnapping)); default: return(null); } // end switch }