mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 07:43:00 +08:00
Simplify the way of getting catcher
This commit is contained in:
parent
81d0a9bd9c
commit
da3499f10e
@ -33,7 +33,7 @@ namespace osu.Game.Rulesets.Catch.Tests
|
||||
// this needs to be done within the frame stable context due to how quickly hyperdash state changes occur.
|
||||
Player.DrawableRuleset.FrameStableComponents.OnUpdate += d =>
|
||||
{
|
||||
var catcher = Player.ChildrenOfType<CatcherArea>().FirstOrDefault()?.MovableCatcher;
|
||||
var catcher = Player.ChildrenOfType<Catcher>().FirstOrDefault();
|
||||
|
||||
if (catcher == null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user