Add assert to ensure complete is only called once.

This commit is contained in:
Dean Herbert
2017-02-10 16:58:40 +09:00
parent dd8ec70bd5
commit 398ac6f459

View File

@ -106,6 +106,8 @@ namespace osu.Game.Overlays.Notifications
public void Complete()
{
Debug.Assert(state != ProgressNotificationState.Completed);
state = ProgressNotificationState.Completed;
NotificationContent.MoveToY(-DrawSize.Y / 2, 200, EasingTypes.OutQuint);