Exemplo n.º 1
0
    public static MtRotateTo Create(float duration, Vector3 dstAngle3D)
    {
        MtRotateTo rotateTo = new MtRotateTo();

        if (rotateTo.InitWithDuration(duration, dstAngle3D))
        {
            return(rotateTo);
        }
        return(null);
    }
Exemplo n.º 2
0
    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);
    }