mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
32 lines
918 B
C#
32 lines
918 B
C#
using QSB.Utility;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.Audio;
|
|
|
|
[UsedInUnityProject]
|
|
public class QSBPlayerAudioController : MonoBehaviour
|
|
{
|
|
public OWAudioSource _oneShotExternalSource;
|
|
public OWAudioSource _repairToolSource;
|
|
|
|
public void PlayEquipTool()
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolTranslatorEquip);
|
|
|
|
public void PlayUnequipTool()
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolTranslatorUnequip);
|
|
|
|
public void PlayTurnOnFlashlight()
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolFlashlightOn);
|
|
|
|
public void PlayTurnOffFlashlight()
|
|
=> _oneShotExternalSource?.PlayOneShot(AudioType.ToolFlashlightOff);
|
|
|
|
public void PlayWearSuit()
|
|
=> PlayOneShot(AudioType.PlayerSuitWearSuit);
|
|
|
|
public void PlayRemoveSuit()
|
|
=> PlayOneShot(AudioType.PlayerSuitRemoveSuit);
|
|
|
|
public void PlayOneShot(AudioType audioType)
|
|
=> _oneShotExternalSource?.PlayOneShot(audioType, 1f);
|
|
} |