Ejemplo n.º 1
0
    public void Rotate(bool clockwise, bool smooth = true, int increment = 90)
    {
        float amount = (clockwise ? increment : -increment);

        if (smooth)
        {
            amount *= Time.deltaTime;
        }

        Visualization.Rotate(Vector3.up * amount);
    }