public override void Enter() { base.Enter(); var rotateAround = MtRotateAround.Create(2, new Vector3(0, 0, 2), Vector3.up, 360); m_tfCube.RunAction(rotateAround); }
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); }
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); }
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); }