public override void Enter() { base.Enter(); var scale = MtScaleTo.Create(1, new Vector3(1.5f, 1.5f, 1.5f)); m_tfCube.RunAction(scale); }
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); m_tfCube.RunAction(spawn); }
public override MtICloneable Clone() { return(MtScaleTo.Create(m_duration, new Vector3(m_endScaleX, m_endScaleY, m_endScaleZ))); }