|
Serious Game - Electrónica VR 1.0.0
|
Panel WorldSpace que dibuja el diagrama del circuito del reto activo. Se auto-detecta del CircuitManager padre al hacer Start(). Actualiza colores de pistas y componentes vía CircuitManager.OnCircuitChanged. More...


Public Attributes | |
| Color | colFondo = new Color(0.05f, 0.17f, 0.07f) |
| Color | colPista = new Color(0.80f, 0.88f, 0.78f) |
| Color | colActivo = new Color(0.20f, 1.00f, 0.35f) |
| Color | colFalla = new Color(1.00f, 0.18f, 0.18f) |
| Color | colNodo = new Color(1.00f, 0.88f, 0.15f) |
| float | grosor = 4f |
| CircuitManager | circuit |
Private Member Functions | |
| void | Start () |
| void | OnDestroy () |
| void | Build () |
| void | LayoutSerie () |
| void | LayoutParalelo () |
| void | LayoutMixto () |
| void | RefreshStatus () |
| void | Pista ((float x, float y) desde,(float x, float y) hasta) |
| void | Pista (Vector2 desde, Vector2 hasta) |
| void | PuntoNodo (Vector2 pos) |
| void | CajaFuente (VoltageSource vs, Vector2 pos) |
| void | CajaComp (ElectricalComponent comp, Vector2 pos, Vector2 size) |
| void | BuildTitleBar () |
| void | LabelGND (Vector2 pos) |
| void | LabelRail (string texto, Vector2 pos) |
| void | TxtEn (GameObject parent, string texto, Vector2 offset, float size, Color color, FontStyles style=FontStyles.Normal) |
| Color | ColorComp (ElectricalComponent c) |
| VoltageSource List< ElectricalComponent > otros | ComponentesFiltrados () |
Static Private Member Functions | |
| static string | LabelComp (ElectricalComponent c) |
| static string | ValorComp (ElectricalComponent c) |
| static GameObject | Nodo (string name, GameObject parent) |
| static GameObject | Nodo (string name, Transform parent) |
| static void | Stretch (GameObject go) |
Private Attributes | |
| RectTransform | _root |
| readonly List< Image > | _pistas = new() |
| readonly List<(Image box, ElectricalComponent comp)> | _indicadores = new() |
| VoltageSource | vs |
Panel WorldSpace que dibuja el diagrama del circuito del reto activo. Se auto-detecta del CircuitManager padre al hacer Start(). Actualiza colores de pistas y componentes vía CircuitManager.OnCircuitChanged.
SETUP (generado automáticamente por GameSceneGenerator): Canvas WorldSpace, hijo del root de la zona de reto. Añadir este script al mismo GameObject del Canvas.
TOPOLOGÍAS soportadas: Series → Reto 1: bucle rectangular, componentes en rail superior Parallel → Reto 2: raíles top/bot con ramas verticales por componente Mixed → Reto 3: sección serie + bifurcación paralela (LED ‖ Capacitor)
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
| CircuitManager CircuitDiagramPanel.circuit |
| Color CircuitDiagramPanel.colActivo = new Color(0.20f, 1.00f, 0.35f) |
| Color CircuitDiagramPanel.colFalla = new Color(1.00f, 0.18f, 0.18f) |
| Color CircuitDiagramPanel.colFondo = new Color(0.05f, 0.17f, 0.07f) |
| Color CircuitDiagramPanel.colNodo = new Color(1.00f, 0.88f, 0.15f) |
| Color CircuitDiagramPanel.colPista = new Color(0.80f, 0.88f, 0.78f) |
| float CircuitDiagramPanel.grosor = 4f |
|
private |