|
Serious Game - Electrónica VR 1.0.0
|
Muestra el estado del sensor en el panel físico de la nave. Se suscribe a OnCircuitChanged y actualiza el texto automáticamente. More...


Public Attributes | |
| LED | linkedLED |
| TMP_Text | statusText |
| Renderer | panelRenderer |
| Color | colorActive = new Color(0.1f, 0.6f, 0.2f) |
| Color | colorFaulty = new Color(0.7f, 0.1f, 0.1f) |
| string | textActive = "ACTIVO" |
| string | textFaulty = "SIN SEÑAL" |
Private Member Functions | |
| void | Awake () |
| void | OnEnable () |
| void | OnDisable () |
| void | Start () |
| void | UpdateDisplay () |
Private Attributes | |
| MaterialPropertyBlock | _mpb |
Static Private Attributes | |
| static readonly int | _colorID = Shader.PropertyToID("_BaseColor") |
Muestra el estado del sensor en el panel físico de la nave. Se suscribe a OnCircuitChanged y actualiza el texto automáticamente.
SETUP en Unity — agregar a Panel_SensorA, Panel_SensorB, Panel_SensorC:
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
| Color SensorStatusDisplay.colorActive = new Color(0.1f, 0.6f, 0.2f) |
| Color SensorStatusDisplay.colorFaulty = new Color(0.7f, 0.1f, 0.1f) |
| LED SensorStatusDisplay.linkedLED |
| Renderer SensorStatusDisplay.panelRenderer |
| TMP_Text SensorStatusDisplay.statusText |
| string SensorStatusDisplay.textActive = "ACTIVO" |
| string SensorStatusDisplay.textFaulty = "SIN SEÑAL" |