mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:53:01 +08:00
Add assert to ensure complete is only called once.
This commit is contained in:
parent
dd8ec70bd5
commit
398ac6f459
@ -106,6 +106,8 @@ namespace osu.Game.Overlays.Notifications
|
|||||||
|
|
||||||
public void Complete()
|
public void Complete()
|
||||||
{
|
{
|
||||||
|
Debug.Assert(state != ProgressNotificationState.Completed);
|
||||||
|
|
||||||
state = ProgressNotificationState.Completed;
|
state = ProgressNotificationState.Completed;
|
||||||
|
|
||||||
NotificationContent.MoveToY(-DrawSize.Y / 2, 200, EasingTypes.OutQuint);
|
NotificationContent.MoveToY(-DrawSize.Y / 2, 200, EasingTypes.OutQuint);
|
||||||
|
Loading…
Reference in New Issue
Block a user