mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
Added speaker and power modules
This commit is contained in:
@@ -13,6 +13,7 @@ public class ModuleSpawner : MonoBehaviour
|
||||
public GameObject displayModulePrefab;
|
||||
public GameObject distanceSensorModulePrefab;
|
||||
public GameObject imuSensorModulePrefab;
|
||||
public GameObject speakerModulePrefab;
|
||||
|
||||
public GameObject GetPrefabForType(ModuleType type)
|
||||
{
|
||||
@@ -37,6 +38,8 @@ public class ModuleSpawner : MonoBehaviour
|
||||
return distanceSensorModulePrefab;
|
||||
case ModuleType.IMU:
|
||||
return imuSensorModulePrefab;
|
||||
case ModuleType.SPEAKER:
|
||||
return speakerModulePrefab;
|
||||
default:
|
||||
Debug.LogError("Unknown module type: " + type);
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user