예제 #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)
                       ));
        }
예제 #2
0
파일: GameManager.cs 프로젝트: Reviiix/kong
 public void EndGame()
 {
     TimeTracker.StopTimer();
     HighScores.SetHighScore(ScoreTracker.Score);
     ProjectManager.Instance.userInterface.EnableGameOverMenu();
 }