Skip to content

Commit

Permalink
move damage audio to unity project
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Nov 16, 2023
1 parent 593656d commit b49256e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Binary file modified QSB/AssetBundles/qsb_network
Binary file not shown.
12 changes: 0 additions & 12 deletions QSB/Audio/QSBPlayerAudioController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ public class QSBPlayerAudioController : MonoBehaviour
public void Start()
{
_audioManager = Locator.GetAudioManager();

// TODO: This should be done in the Unity project
var damageAudio = new GameObject("DamageAudioSource");
damageAudio.SetActive(false);
damageAudio.transform.SetParent(transform, false);
damageAudio.transform.localPosition = Vector3.zero;
_damageAudioSource = damageAudio.AddComponent<OWAudioSource>();
_damageAudioSource._audioSource = damageAudio.GetAddComponent<AudioSource>();
_damageAudioSource.SetTrack(_repairToolSource.GetTrack());
_damageAudioSource.spatialBlend = 1f;
_damageAudioSource.gameObject.GetAddComponent<QSBDopplerFixer>();
damageAudio.SetActive(true);
}

private void Update()
Expand Down

0 comments on commit b49256e

Please sign in to comment.