Пример #1
0
    public static MtRotateBy Create(float duration, Vector3 deltaAngle3D)
    {
        MtRotateBy rotateBy = new MtRotateBy();

        if (rotateBy.InitWithDuration(duration, deltaAngle3D))
        {
            return(rotateBy);
        }
        return(null);
    }
Пример #2
0
    public override MtICloneable Clone()
    {
        //no copy constructor
        MtRotateBy rotateBy = new MtRotateBy();

        if (m_is3D)
        {
            rotateBy.InitWithDuration(m_duration, m_deltaAngle);
        }
//		else
//			rotateTo.InitWithDuration(m_duration, m_dstAngle.x, m_dstAngle.y);
        return(rotateBy);
    }