Added speaker and power modules

This commit is contained in:
Christen
2026-03-03 00:51:12 -05:00
parent 6b2270381d
commit 20480f6eaf
65 changed files with 14788 additions and 718 deletions

View File

@@ -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;