Serious Game - Electrónica VR 1.0.0
Loading...
Searching...
No Matches
ComponentDeliverySystemBackup Class Reference

Sistema de entrega asimétrica de componentes. More...

Inheritance diagram for ComponentDeliverySystemBackup:
Inheritance graph
Collaboration diagram for ComponentDeliverySystemBackup:
Collaboration graph

Public Member Functions

void SendResistor (float resistanceValue)
void SendLED (bool correctPolarity=true)
void SendCapacitor (bool correctPolarity=true)
void OnExplorerInstalled (ComponentSlot slot)
void InicializarManual (NetworkRunner runnerActivo)

Public Attributes

GameManager gameManager
Transform puntoDeEntrega
GameObject resistorPrefab
GameObject ledPrefab
GameObject capacitorPrefab
GameObject arduinoPinPrefab

Events

static Action< ComponentType, float > OnComponentSent
static Action< bool > OnComponentInstalled
static Action OnDeliveryError

Private Member Functions

void OnEnable ()
void OnDisable ()
void SpawnInDeliveryTray (GameObject prefab, float value)
void ApplyRepairToCircuit ()
bool ValidateResistorValue (float value)
ComponentSlotType GetSlotTypeFor (ComponentType type)
void CancelPendingDelivery ()

Private Attributes

NetworkRunner _manualRunner
ComponentType _pendingType = ComponentType.None
float _pendingValue = 0f
bool _waitingForInstall = false
GameObject _spawnedComponent

Detailed Description

Sistema de entrega asimétrica de componentes.

FLUJO COMPLETO:

  1. Técnico diagnostica el problema en su panel
  2. Técnico selecciona el componente correcto desde su UI
  3. Técnico pulsa "Enviar componente al Explorador"
  4. El componente aparece físicamente en la mano del Explorador (XR Origin)
  5. Explorador lo instala en el slot correcto del panel
  6. GameManager valida → reto completado

Si el Técnico envía el componente EQUIVOCADO → error registrado, el componente desaparece y el Técnico debe volver a diagnosticar.

Member Function Documentation

◆ ApplyRepairToCircuit()

void ComponentDeliverySystemBackup.ApplyRepairToCircuit ( )
private

◆ CancelPendingDelivery()

void ComponentDeliverySystemBackup.CancelPendingDelivery ( )
private

◆ GetSlotTypeFor()

ComponentSlotType ComponentDeliverySystemBackup.GetSlotTypeFor ( ComponentType type)
private

◆ InicializarManual()

void ComponentDeliverySystemBackup.InicializarManual ( NetworkRunner runnerActivo)

◆ OnDisable()

void ComponentDeliverySystemBackup.OnDisable ( )
private

◆ OnEnable()

void ComponentDeliverySystemBackup.OnEnable ( )
private

◆ OnExplorerInstalled()

void ComponentDeliverySystemBackup.OnExplorerInstalled ( ComponentSlot slot)

◆ SendCapacitor()

void ComponentDeliverySystemBackup.SendCapacitor ( bool correctPolarity = true)

◆ SendLED()

void ComponentDeliverySystemBackup.SendLED ( bool correctPolarity = true)

◆ SendResistor()

void ComponentDeliverySystemBackup.SendResistor ( float resistanceValue)

◆ SpawnInDeliveryTray()

void ComponentDeliverySystemBackup.SpawnInDeliveryTray ( GameObject prefab,
float value )
private

◆ ValidateResistorValue()

bool ComponentDeliverySystemBackup.ValidateResistorValue ( float value)
private

Member Data Documentation

◆ _manualRunner

NetworkRunner ComponentDeliverySystemBackup._manualRunner
private

◆ _pendingType

ComponentType ComponentDeliverySystemBackup._pendingType = ComponentType.None
private

◆ _pendingValue

float ComponentDeliverySystemBackup._pendingValue = 0f
private

◆ _spawnedComponent

GameObject ComponentDeliverySystemBackup._spawnedComponent
private

◆ _waitingForInstall

bool ComponentDeliverySystemBackup._waitingForInstall = false
private

◆ arduinoPinPrefab

GameObject ComponentDeliverySystemBackup.arduinoPinPrefab

◆ capacitorPrefab

GameObject ComponentDeliverySystemBackup.capacitorPrefab

◆ gameManager

GameManager ComponentDeliverySystemBackup.gameManager

◆ ledPrefab

GameObject ComponentDeliverySystemBackup.ledPrefab

◆ puntoDeEntrega

Transform ComponentDeliverySystemBackup.puntoDeEntrega

◆ resistorPrefab

GameObject ComponentDeliverySystemBackup.resistorPrefab

Event Documentation

◆ OnComponentInstalled

Action<bool> ComponentDeliverySystemBackup.OnComponentInstalled
static

◆ OnComponentSent

Action<ComponentType, float> ComponentDeliverySystemBackup.OnComponentSent
static

◆ OnDeliveryError

Action ComponentDeliverySystemBackup.OnDeliveryError
static

The documentation for this class was generated from the following file: