Move CheckFailed outside of Schedule().

This commit is contained in:
smoogipooo 2017-03-17 00:30:23 +09:00
parent 7764474cfe
commit b13340c3c8
1 changed files with 9 additions and 9 deletions

View File

@ -239,18 +239,18 @@ public void Restart()
private void onCompletion()
{
// Force a final check to see if the player has failed
// Some game modes (e.g. taiko) fail at the end of the map
if (scoreProcessor.CheckFailed())
{
// If failed, onFail will be invoked which will push a new screen.
// Let's not push the completion screen in this case
return;
}
Delay(1000);
Schedule(delegate
{
// Force a final check to see if the player has failed
// Some game modes (e.g. taiko) fail at the end of the map
if (scoreProcessor.CheckFailed())
{
// If failed, onFail will be called which will push a new screen.
// Let's not push the completion screen in this case
return;
}
ValidForResume = false;
Push(new Results
{