2021-12-15 21:11:30 +00:00
|
|
|
|
using UnityEngine;
|
2021-12-14 22:53:53 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.Audio;
|
|
|
|
|
|
|
|
|
|
public class QSBPlayerAudioController : MonoBehaviour
|
2021-12-14 22:53:53 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public OWAudioSource _oneShotExternalSource;
|
|
|
|
|
public OWAudioSource _repairToolSource;
|
2021-12-14 22:53:53 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public void PlayEquipTool()
|
|
|
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolTranslatorEquip);
|
2021-12-14 22:53:53 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public void PlayUnequipTool()
|
|
|
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolTranslatorUnequip);
|
2021-12-14 22:53:53 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public void PlayTurnOnFlashlight()
|
|
|
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolFlashlightOn);
|
2021-12-14 22:56:54 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
public void PlayTurnOffFlashlight()
|
|
|
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolFlashlightOff);
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|