Beispiel #1
0
    }                  //nothing

    // Update is called once per frame
    public void Update(float deltaTime)
    {
        renderer.material.color = Colour;

        Progress += deltaTime * Speed;
        if (Progress > 1)
        {
            Progress = 1;
            TerminalSquare.Notify(this);
        }

        transform.position = (1 - Progress) * From + Progress * To;
    }