C#C
C#3y ago
MRW419

❔ What is the problem with this code?

switch (layer)
        {
            case Layer.Foreground;
            return speed * 1;
            case Layer.Middleground;
            return speed * 0.5f;
            case Layer.Background;
            return speed * 0.1f;
            default;
            return speed * 1;
           
        }
image.png
Was this page helpful?