Get rid of raw AddDelay calls within osu.Game

This commit is contained in:
Thomas Müller
2017-07-17 16:51:21 +03:00
parent 19fb03e737
commit 87bcd526f3
19 changed files with 67 additions and 96 deletions

View File

@ -106,8 +106,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
private void schedulePopOut()
{
popOutDelegate?.Cancel();
AddDelay(1000);
popOutDelegate = Schedule(Hide);
this.Delay(1000).Schedule(Hide, out popOutDelegate);
}
}
}