Set shock audio pool

This commit is contained in:
Noah Pilarski 2022-09-08 21:41:21 -04:00
parent 009685329a
commit e79b82c651

View File

@ -62,7 +62,9 @@ namespace NewHorizons.Builder.Volumes
}
else if (info.type == VolumesModule.HazardVolumeInfo.HazardType.ELECTRICITY)
{
hazardVolume = go.AddComponent<ElectricityVolume>();
var electricityVolume = go.AddComponent<ElectricityVolume>();
electricityVolume._shockAudioPool = new OWAudioSource[0];
hazardVolume = electricityVolume;
}
else
{