Ejemplo n.º 1
0
        protected override Composite CreateBehavior()
        {
            return(new Sequence(
                       new PrioritySelector(

                           new Decorator(ret => Name != null,
                                         new Action(ret => TimeTracker.StopTimer(Name))),

                           new Decorator(ret => Group != null,
                                         new Action(ret => TimeTracker.StopGroup(Group)))

                           ),
                       new Action(ret => _isDone = true)
                       ));
        }
Ejemplo n.º 2
0
 public void EndGame()
 {
     TimeTracker.StopTimer();
     HighScores.SetHighScore(ScoreTracker.Score);
     ProjectManager.Instance.userInterface.EnableGameOverMenu();
 }