|
Serious Game - Electrónica VR 1.0.0
|
Permite al Explorador corregir la polaridad de un LED o Capacitor en el Reto 3. More...


Public Types | |
| enum | FlipType { LED , Capacitor } |
Public Attributes | |
| FlipType | flipType = FlipType.LED |
| LED | ledComponent |
| Capacitor | capacitorComponent |
| PlayerInteraction | playerInteraction |
| GameObject | fixedIndicator |
| Color | colorPendiente = new Color(1f, 0.3f, 0.1f) |
| Color | colorCorregido = new Color(0.2f, 0.9f, 0.3f) |
Private Member Functions | |
| void | Awake () |
| void | OnEnable () |
| void | OnDisable () |
| void | Update () |
| void | OnFlip (SelectEnterEventArgs args) |
| bool | IsCurrentlyInverted () |
| void | SetRendererColor (Color c) |
Private Attributes | |
| XRSimpleInteractable | _interactable |
| Renderer | _renderer |
| MaterialPropertyBlock | _mpb |
Static Private Attributes | |
| static readonly int | _colorID = Shader.PropertyToID("_BaseColor") |
Permite al Explorador corregir la polaridad de un LED o Capacitor en el Reto 3.
SETUP EN UNITY (en el GameObject del LED o Capacitor en reto3Zone):
FLUJO: Explorador apunta con el controlador y pulsa gatillo → OnFlip() detecta el tipo → llama PlayerInteraction.CorrectPolarity() → polarityInverted = false → circuit.MarkDirty() → circuito resimula → InstructionSystem avanza al siguiente paso
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
| Capacitor FlippableComponent.capacitorComponent |
| Color FlippableComponent.colorCorregido = new Color(0.2f, 0.9f, 0.3f) |
| Color FlippableComponent.colorPendiente = new Color(1f, 0.3f, 0.1f) |
| GameObject FlippableComponent.fixedIndicator |
| FlipType FlippableComponent.flipType = FlipType.LED |
| LED FlippableComponent.ledComponent |
| PlayerInteraction FlippableComponent.playerInteraction |