Puzzle Manager - Hawthorn-Games/ProjectScrapped GitHub Wiki
| Type | Name | Description |
|---|---|---|
| -GameModeObj | GameMode | Game mode reference |
| -float | bestScore | The best score achieved so far on this puzzle |
| -float | 100%Score | The maximum score achievable. The points rewarded are a proportion based on the desired score and the actual score achieved |
| -int | completionCount | Counter that starts after all the objectives are set as complete. Once it reaches 5 the puzzle manager awards points. |
| -string | puzzleID | Unique Identifier of the puzzle |
| -bool | puzzleSolved | Checked every loop. True if all the Objectives are true, false otherwise |
| -bool | completed | Has the puzzle been completed |
| +BaseProgrammable[] | puzzleElements | All the elements of the puzzle that can be interacted with. |
| +BaseProgrammable:bool | objecives | Reference to the objectives of the puzzle, mapped to a boolean to indicate completion |
Call the reset function of all the elements of puzzleElements.
Calculates the points to reward, then calls Game Manager#AddPoints