Пример #1
0
    public override void Enter()
    {
        base.Enter();
        var scale = MtScaleTo.Create(1, new Vector3(1.5f, 1.5f, 1.5f));

        m_tfCube.RunAction(scale);
    }
Пример #2
0
    public static MtScaleTo Create(float duration, float s)
    {
        MtScaleTo scaleTo = new MtScaleTo();

        if (scaleTo.InitWithDuration(duration, s))
        {
            return(scaleTo);
        }
        return(null);
    }
Пример #3
0
    public static MtScaleTo Create(float duration, Vector3 s)
    {
        MtScaleTo scaleTo = new MtScaleTo();

        if (scaleTo.InitWithDuration(duration, s.x, s.y, s.z))
        {
            return(scaleTo);
        }
        return(null);
    }
Пример #4
0
    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);
    }
Пример #5
0
 public override MtICloneable Clone()
 {
     return(MtScaleTo.Create(m_duration, new Vector3(m_endScaleX, m_endScaleY, m_endScaleZ)));
 }