Example #1
0
    public override void Enter()
    {
        base.Enter();

        var rotateAround = MtRotateAround.Create(2, new Vector3(0, 0, 2), Vector3.up, 360);

        m_tfCube.RunAction(rotateAround);
    }
Example #2
0
    public static MtRotateAround Create(float duration, Vector3 point, Vector3 axis, float angle)
    {
        MtRotateAround rotateAround = new MtRotateAround();

        if (rotateAround.InitWithDuration(duration, point, axis, angle))
        {
            return(rotateAround);
        }
        return(null);
    }
Example #3
0
    public override MtICloneable Clone()
    {
        //no copy constructor
        MtRotateAround rotateAround = new MtRotateAround();

        if (m_is3D)
        {
            rotateAround.InitWithDuration(m_duration, m_point, m_axis, m_deltaAngle);
        }
        return(rotateAround);
    }
Example #4
0
 public override MtAction Reverse()
 {
     if (m_is3D)
     {
         return(MtRotateAround.Create(m_duration, m_point, m_axis, -m_deltaAngle));
     }
     else
     {
         //			return MtRotateBy.Create(m_duration, -m_deltaAngle.x, -m_deltaAngle.y);
     }
     return(null);
 }