1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:42:55 +08:00

Make colour readonly

This commit is contained in:
Derrick Timmermans 2020-11-22 18:37:49 +01:00
parent 458016d17d
commit ba7ce4c933
No known key found for this signature in database
GPG Key ID: 8681B60806EF4A17

View File

@ -174,7 +174,8 @@ namespace osu.Game.Screens.Menu
// Assuming the logo is a circle, we don't need a second dimension.
private float size;
private Color4 colour = Color4.White.Opacity(.2f);
private readonly Color4 colour = Color4.White.Opacity(.2f);
private float[] audioData;
private readonly QuadBatch<TexturedVertex2D> vertexBatch = new QuadBatch<TexturedVertex2D>(100, 10);