The template contains since 3.0 a system to evaluate the player performance during a stage.

image.png

In order to trigger an evaluation, use the component StageCompleteTrigger, there is an example of this at the end of SampleScene2.

image.png

This component references a RankingDataSet which contains the evaluation conditions for each rank of this specific stage. For each stage of your game, you’ll need a new RankingDataSet .

image.png

You can create a new set by right clicking on your Project view and select: Create→HorrorEngine→Ranking→RankingDataSet

image.png

Then assign the data set to your level StageCompleteTrigger component.

The stage evaluation can be triggered by calling the method StageCompleteTrigger.CompleteStage

image.png

The evaluation will automatically reset after each stage is completed and the transition to the next scene completed.