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

Etiqueta que indica a qué reto(s) pertenece un componente eléctrico. Agregar este script a cada GameObject de componente en el circuito maestro. More...

Inheritance diagram for ChallengeTag:
Inheritance graph
Collaboration diagram for ChallengeTag:
Collaboration graph

Public Member Functions

bool BelongsToLevel (LevelType level)
 Devuelve true si este componente debe estar activo en el nivel dado.

Public Attributes

bool reto1_OhmLaw = false
bool reto2_Parallel = false
bool reto3_Mixed = false
bool reto4_Arduino = false

Properties

bool IsShared [get]
 True si no tiene ningún reto marcado (componente compartido/global).

Detailed Description

Etiqueta que indica a qué reto(s) pertenece un componente eléctrico. Agregar este script a cada GameObject de componente en el circuito maestro.

SETUP EN UNITY:

  1. Selecciona el GameObject del componente (ej: Resistor_Reto1)
  2. Add Component → ChallengeTag
  3. En el Inspector, marca los checkboxes de los retos en los que participa

Si un componente se usa en más de un reto (ej: la fuente de voltaje), marca varios checkboxes. Si no tiene ChallengeTag, se considera COMPARTIDO (siempre activo).

Member Function Documentation

◆ BelongsToLevel()

bool ChallengeTag.BelongsToLevel ( LevelType level)

Devuelve true si este componente debe estar activo en el nivel dado.

Member Data Documentation

◆ reto1_OhmLaw

bool ChallengeTag.reto1_OhmLaw = false

◆ reto2_Parallel

bool ChallengeTag.reto2_Parallel = false

◆ reto3_Mixed

bool ChallengeTag.reto3_Mixed = false

◆ reto4_Arduino

bool ChallengeTag.reto4_Arduino = false

Property Documentation

◆ IsShared

bool ChallengeTag.IsShared
get

True si no tiene ningún reto marcado (componente compartido/global).


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