final tutorial implementation.

This commit is contained in:
Sarah 2015-11-21 18:24:17 +01:00
parent 15032ac7ff
commit 171696ff0d

View File

@ -146,22 +146,14 @@ public class GameManager implements Listener
boolean finished = true; boolean finished = true;
if(game.EnableTutorials) if(game.EnableTutorials)
{ {
for(final GameTeam team : game.GetTeamList()) for(GameTeam team : game.GetTeamList())
{ {
if(team.getTutorial() != null) if(team.getTutorial() != null)
{ {
if(!team.getTutorial().hasStarted()) if(!team.getTutorial().hasStarted())
{ {
Manager.runSync(new Runnable() team.getTutorial().setTeam(team);
{ team.getTutorial().start();
@Override
public void run()
{
team.getTutorial().setTeam(team);
team.getTutorial().start();
}
});
} }
if(!team.getTutorial().hasEnded()) if(!team.getTutorial().hasEnded())
{ {