mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Reorder private/protected methods
This commit is contained in:
parent
c4976e9db8
commit
ea8e49c543
@ -28,13 +28,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
Host.ValueChanged += hostChanged;
|
||||
}
|
||||
|
||||
private void hostChanged(ValueChangedEvent<APIUser> value)
|
||||
{
|
||||
if (value.OldValue == null) return;
|
||||
|
||||
hostChangedSample?.Play();
|
||||
}
|
||||
|
||||
protected override void UserJoined(MultiplayerRoomUser user)
|
||||
{
|
||||
base.UserJoined(user);
|
||||
@ -56,6 +49,14 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
|
||||
userKickedSample?.Play();
|
||||
}
|
||||
|
||||
private void hostChanged(ValueChangedEvent<APIUser> value)
|
||||
{
|
||||
// only play sound when the host changes from an already-existing host.
|
||||
if (value.OldValue == null) return;
|
||||
|
||||
hostChangedSample?.Play();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
base.Dispose(isDisposing);
|
||||
|
Loading…
Reference in New Issue
Block a user