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,6 +31,7 @@ public abstract class GameTutorial
public boolean SetTutorialPositions = true;
public boolean TeleportOnEnd = true;
public boolean RunTasksSync = true;
public long TimeBetweenPhase = 0;
public long StartAfterTutorial = 5000;

View File

@ -141,6 +141,8 @@ public abstract class TutorialPhase
}
private void displayMessage(final TutorialText text)
{
if(_tutorial.RunTasksSync)
{
_tutorial.Manager.runSync(new Runnable()
{
@ -151,6 +153,11 @@ public abstract class TutorialPhase
}
});
}
else
{
onMessageDisplay(text);
}
}
protected TutorialText getNextMessage()
{