public override void Enter() { base.Enter(); var scale1 = MtScaleTo.Create(0.5f, new Vector3(1.5f, 1.5f, 1.5f)); var scale2 = MtScaleTo.Create(0.5f, Vector3.one); var sequence = MtSequence.Create(scale1, scale2); var rotate = MtRotateBy.Create(1, new Vector3(0, 360, 0)); var spawn = MtSpawn.Create(sequence, rotate); var repeat = MtRepeat.Create(spawn, 3); m_tfCube.RunAction(repeat); }
public override MtAction Reverse() { return(MtRepeat.Create(m_innerAction.Reverse() as MtFiniteTimeAction, m_times)); }
public override MtICloneable Clone() { // no copy constructor return(MtRepeat.Create(m_innerAction.Clone() as MtFiniteTimeAction, m_times)); }