|
Serious Game - Electrónica VR 1.0.0
|
Gestiona los objetivos específicos de cada reto y el puntaje final. Se suscribe a eventos de GameManager para actualizar el estado automáticamente. More...


Public Member Functions | |
| void | CompleteObjective (int index, float timeBonus=1f) |
| Marca el objetivo en el índice como completado y suma puntos. | |
| List< Objective > | GetObjectives () |
| int | GetTotalScore () |
| int | GetMaxScore () |
| float | GetScorePercent () |
Public Attributes | |
| GameManager | gameManager |
| PerformanceTracker | performance |
Events | |
| static Action< Objective > | OnObjectiveCompleted |
| static Action< int, int > | OnScoreUpdated |
| static Action< SessionResult > | OnSessionEnded |
Private Member Functions | |
| void | Start () |
| void | OnDestroy () |
| void | BuildObjectivesForLevel (LevelType level) |
| void | AddObjective (string description, int points) |
| void | HandleLevelCompleted (LevelType level, bool success) |
| void | HandleGameCompleted () |
Private Attributes | |
| List< Objective > | _objectives = new List<Objective>() |
| int | _totalScore = 0 |
| int | _maxScore = 0 |
Gestiona los objetivos específicos de cada reto y el puntaje final. Se suscribe a eventos de GameManager para actualizar el estado automáticamente.
|
private |
|
private |
| void ObjectiveSystem.CompleteObjective | ( | int | index, |
| float | timeBonus = 1f ) |
Marca el objetivo en el índice como completado y suma puntos.
| int ObjectiveSystem.GetMaxScore | ( | ) |
| List< Objective > ObjectiveSystem.GetObjectives | ( | ) |
| float ObjectiveSystem.GetScorePercent | ( | ) |
| int ObjectiveSystem.GetTotalScore | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| GameManager ObjectiveSystem.gameManager |
| PerformanceTracker ObjectiveSystem.performance |
|
static |
|
static |
|
static |