1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Unsubscribe from ValueChanged events

This commit is contained in:
TocoToucan 2016-10-13 17:52:49 +03:00
parent 059e2a3c5a
commit d5cb331eb3

View File

@ -51,6 +51,14 @@ namespace osu.Game
};
}
protected override void Dispose(bool isDisposing)
{
VolumeGlobal.ValueChanged -= volumeChanged;
VolumeSample.ValueChanged -= volumeChanged;
VolumeTrack.ValueChanged -= volumeChanged;
base.Dispose(isDisposing);
}
protected override bool OnWheelDown(InputState state)
{
volumeMeterMaster.TriggerWheelDown(state);