Vive en la escena Explorador.unity. Escucha GameSession.OnComponenteRecibido y spawna el componente físico en la bandeja del Explorador para que pueda instalarlo.
More...
Vive en la escena Explorador.unity. Escucha GameSession.OnComponenteRecibido y spawna el componente físico en la bandeja del Explorador para que pueda instalarlo.
SETUP EN UNITY (escena Explorador):
- Añadir este script a cualquier GameObject (ej. "ComponentReceiver").
- Asignar puntoDeEntrega → Transform de la Bandeja_Recepcion del Explorador.
- Asignar los prefabs de componentes (mismos que usa ComponentDeliverySystem).
- Asignar delivery → ComponentDeliverySystem de la escena (para OnExplorerInstalled).
◆ ConfigurarComponente()
| void ExplorerComponentReceiver.ConfigurarComponente |
( |
GameObject | obj, |
|
|
ComponentType | tipo, |
|
|
float | valor ) |
|
private |
◆ HandleComponenteRecibido()
| void ExplorerComponentReceiver.HandleComponenteRecibido |
( |
ComponentType | tipo, |
|
|
float | valor ) |
|
private |
◆ HandleRetoChanged()
| void ExplorerComponentReceiver.HandleRetoChanged |
( |
int | reto | ) |
|
|
private |
◆ OnDisable()
| void ExplorerComponentReceiver.OnDisable |
( |
| ) |
|
|
private |
◆ OnEnable()
| void ExplorerComponentReceiver.OnEnable |
( |
| ) |
|
|
private |
◆ _componenteActual
| GameObject ExplorerComponentReceiver._componenteActual |
|
private |
◆ arduinoPinPrefab
| GameObject ExplorerComponentReceiver.arduinoPinPrefab |
◆ capacitorPrefab
| GameObject ExplorerComponentReceiver.capacitorPrefab |
◆ delivery
◆ ledPrefab
| GameObject ExplorerComponentReceiver.ledPrefab |
◆ puntoDeEntrega
| Transform ExplorerComponentReceiver.puntoDeEntrega |
◆ resistorPrefab
| GameObject ExplorerComponentReceiver.resistorPrefab |
The documentation for this class was generated from the following file: