mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 08:32:57 +08:00
Use ElementAt() where applicable
This commit is contained in:
parent
8d3e228f78
commit
d68c45e22b
@ -99,7 +99,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
addSeekStep(16500);
|
||||
AddStep("retrieve 2nd slider repeat", () =>
|
||||
{
|
||||
var drawable = Player.DrawableRuleset.Playfield.AllHitObjects.Skip(1).First();
|
||||
var drawable = Player.DrawableRuleset.Playfield.AllHitObjects.ElementAt(1);
|
||||
repeat = drawable.ChildrenOfType<Container<DrawableSliderRepeat>>().First().Children.First();
|
||||
});
|
||||
AddStep("Save repeat vector", () => savedVector = repeat.Position);
|
||||
@ -121,7 +121,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
int repeats = index;
|
||||
AddStep($"retrieve {(index + 1).ToOrdinalWords()} slider", () =>
|
||||
{
|
||||
slider = (DrawableSlider)Player.DrawableRuleset.Playfield.AllHitObjects.Skip(index).First();
|
||||
slider = (DrawableSlider)Player.DrawableRuleset.Playfield.AllHitObjects.ElementAt(index);
|
||||
});
|
||||
setSnaking(snaking);
|
||||
testSnakingIn(startTime + fade_in_modifier, snaking);
|
||||
|
Loading…
Reference in New Issue
Block a user