public static MtRotateTo Create(float duration, Vector3 dstAngle3D) { MtRotateTo rotateTo = new MtRotateTo(); if (rotateTo.InitWithDuration(duration, dstAngle3D)) { return(rotateTo); } return(null); }
public override MtICloneable Clone() { //no copy constructor MtRotateTo rotateTo = new MtRotateTo(); if (m_is3D) { rotateTo.InitWithDuration(m_duration, m_dstAngle); } // else // rotateTo.InitWithDuration(m_duration, m_dstAngle.x, m_dstAngle.y); return(rotateTo); }