Sistema de pasos e instrucciones del reto activo. Valida automáticamente las condiciones de cada paso y avanza cuando el Explorador o el Técnico cumplen el requisito.
More...
|
| void | BuildInstructions () |
| | Genera el array de instrucciones según el nivel activo. Llamar al cargar cada nivel (GameManager.OnLevelLoaded).
|
| string | GetCurrentInstruction () |
| | Devuelve el texto de la instrucción del paso actual. Retorna "Procedimiento completado." si se superaron todos los pasos.
|
| void | NextStep () |
| | Avanza al siguiente paso y lo registra en consola.
|
| void | ResetInstructions () |
| | Reinicia todos los flags y el contador de pasos. Llamar al cargar un nuevo nivel.
|
| bool | CanRepairResistor () |
| | True cuando el Técnico puede enviar la resistencia al Explorador. Requiere haber medido y seleccionado el componente correcto (paso 3+).
|
| bool | CanRepairParallel () |
| | True cuando el Técnico puede autorizar la reparación del paralelo. Requiere haber completado las mediciones (paso 2+).
|
Sistema de pasos e instrucciones del reto activo. Valida automáticamente las condiciones de cada paso y avanza cuando el Explorador o el Técnico cumplen el requisito.
Flujo por reto:
-
Reto 1: medir → verificar voltaje → seleccionar resistencia → reemplazar
-
Reto 2: medir → identificar rama rota → reconectar
-
Reto 3: capacitor → LED → resistencia
-
Reto 4: localizar pin → mover cable → instalar resistencia → reconectar cable suelto
◆ BuildInstructions()
| void InstructionSystem.BuildInstructions |
( |
| ) |
|
◆ CanRepairParallel()
| bool InstructionSystem.CanRepairParallel |
( |
| ) |
|
True cuando el Técnico puede autorizar la reparación del paralelo. Requiere haber completado las mediciones (paso 2+).
◆ CanRepairResistor()
| bool InstructionSystem.CanRepairResistor |
( |
| ) |
|
True cuando el Técnico puede enviar la resistencia al Explorador. Requiere haber medido y seleccionado el componente correcto (paso 3+).
◆ GetCurrentInstruction()
| string InstructionSystem.GetCurrentInstruction |
( |
| ) |
|
Devuelve el texto de la instrucción del paso actual. Retorna "Procedimiento completado." si se superaron todos los pasos.
◆ NextStep()
| void InstructionSystem.NextStep |
( |
| ) |
|
Avanza al siguiente paso y lo registra en consola.
◆ OnCircuitChanged()
| void InstructionSystem.OnCircuitChanged |
( |
| ) |
|
|
private |
◆ OnDisable()
| void InstructionSystem.OnDisable |
( |
| ) |
|
|
private |
◆ OnEnable()
| void InstructionSystem.OnEnable |
( |
| ) |
|
|
private |
◆ ResetInstructions()
| void InstructionSystem.ResetInstructions |
( |
| ) |
|
Reinicia todos los flags y el contador de pasos. Llamar al cargar un nuevo nivel.
◆ Start()
| void InstructionSystem.Start |
( |
| ) |
|
|
private |
Inicializa y construye las instrucciones al arrancar.
◆ Update()
| void InstructionSystem.Update |
( |
| ) |
|
|
private |
Valida el paso actual solo cuando el circuito cambia.
◆ ValidateArduino()
| void InstructionSystem.ValidateArduino |
( |
| ) |
|
|
private |
Valida los 5 pasos del Reto 4 — Sensor-Actuador Arduino.
◆ ValidateCurrentStep()
| void InstructionSystem.ValidateCurrentStep |
( |
| ) |
|
|
private |
Delega la validación al método correspondiente del reto activo.
◆ ValidateMixed()
| void InstructionSystem.ValidateMixed |
( |
| ) |
|
|
private |
Valida los 4 pasos del Reto 3 — Circuito Mixto y Polaridad.
◆ ValidateOhmLaw()
| void InstructionSystem.ValidateOhmLaw |
( |
| ) |
|
|
private |
Valida los 4 pasos del Reto 1 — Ley de Ohm.
◆ ValidateParallel()
| void InstructionSystem.ValidateParallel |
( |
| ) |
|
|
private |
Valida los 3 pasos del Reto 2 — Circuito Paralelo.
◆ _needsValidation
| bool InstructionSystem._needsValidation = true |
|
private |
◆ currentStep
| int InstructionSystem.currentStep = 0 |
Paso actual del reto (0-based). Solo lectura en runtime.
◆ gameManager
Gestor del juego — provee el nivel activo.
◆ hasAppliedFix
| bool InstructionSystem.hasAppliedFix = false |
True cuando se aplicó la reparación al circuito.
◆ hasMeasuredCorrectly
| bool InstructionSystem.hasMeasuredCorrectly = false |
True cuando el Explorador realizó al menos una medición válida.
◆ hasSelectedCorrectComponent
| bool InstructionSystem.hasSelectedCorrectComponent = false |
True cuando el Técnico seleccionó el componente correcto.
◆ instructions
| string [] InstructionSystem.instructions |
Array de instrucciones del reto activo. Se construye en BuildInstructions() al cargar cada nivel.
◆ multimeter
Multímetro del Explorador — se consulta para validar mediciones.
◆ technicianActions
Acciones del Técnico — se consulta para validar selecciones.
The documentation for this class was generated from the following file: