Update TornadoBuilder.cs

This commit is contained in:
Nick 2022-06-15 12:49:20 -04:00
parent b02da60590
commit 6e5c381cc7

View File

@ -109,7 +109,7 @@ namespace NewHorizons.Builder.Props
var audioSpreadController = soundGO.GetComponentInChildren<AudioSpreadController>(); var audioSpreadController = soundGO.GetComponentInChildren<AudioSpreadController>();
audioSpreadController.SetSector(sector); audioSpreadController.SetSector(sector);
var audioSource = audioRail._audioTransform.GetComponent<AudioSource>(); var audioSource = audioRail._audioTransform.GetComponent<OWAudioSource>();
audioSource.playOnAwake = true; audioSource.playOnAwake = true;
var scale = info.height == 0 ? 1 : info.height / 10f; var scale = info.height == 0 ? 1 : info.height / 10f;