1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 21:27:24 +08:00

Less array explicivity.

This commit is contained in:
Dan Balasescu 2017-05-03 13:03:46 +09:00 committed by GitHub
parent 7de36b7aa2
commit d21c3358b9

View File

@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Mania.UI
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
Color4[] columnColours = new[]
var columnColours = new[]
{
colours.RedDark,
colours.GreenDark,
@ -73,7 +73,7 @@ namespace osu.Game.Rulesets.Mania.UI
int columnCount = Columns.Children.Count();
int halfColumns = columnCount / 2;
Key[] keys = new[] { Key.A, Key.S, Key.D, Key.F, Key.Space, Key.J, Key.K, Key.L, Key.Semicolon };
var keys = new[] { Key.A, Key.S, Key.D, Key.F, Key.Space, Key.J, Key.K, Key.L, Key.Semicolon };
for (int i = 0; i < halfColumns; i++)
{
@ -96,4 +96,4 @@ namespace osu.Game.Rulesets.Mania.UI
}
}
}
}
}