RunTasksSync Flag.

This commit is contained in:
Sarah 2015-11-30 16:58:41 +01:00
parent dc68375ec8
commit e2cfcef55b
2 changed files with 15 additions and 7 deletions

View File

@ -31,7 +31,8 @@ public abstract class GameTutorial
public boolean SetTutorialPositions = true; public boolean SetTutorialPositions = true;
public boolean TeleportOnEnd = true; public boolean TeleportOnEnd = true;
public boolean RunTasksSync = true;
public long TimeBetweenPhase = 0; public long TimeBetweenPhase = 0;
public long StartAfterTutorial = 5000; public long StartAfterTutorial = 5000;

View File

@ -142,14 +142,21 @@ public abstract class TutorialPhase
private void displayMessage(final TutorialText text) private void displayMessage(final TutorialText text)
{ {
_tutorial.Manager.runSync(new Runnable() if(_tutorial.RunTasksSync)
{ {
@Override _tutorial.Manager.runSync(new Runnable()
public void run()
{ {
onMessageDisplay(text); @Override
} public void run()
}); {
onMessageDisplay(text);
}
});
}
else
{
onMessageDisplay(text);
}
} }
protected TutorialText getNextMessage() protected TutorialText getNextMessage()