Click und Anfang der Prefabisierung
This commit is contained in:
@ -8,6 +8,12 @@ using Utility;
|
||||
|
||||
public class CoffeeMachine : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private AudioClip _buttonClick;
|
||||
|
||||
[SerializeField]
|
||||
private AudioSource _audioSource;
|
||||
|
||||
[SerializeField]
|
||||
private List<CoffeePlace> _coffeePlaces = new();
|
||||
|
||||
@ -19,7 +25,7 @@ public class CoffeeMachine : MonoBehaviour
|
||||
|
||||
public void CookCoffee()
|
||||
{
|
||||
// TODO: Play beep sound
|
||||
_audioSource.PlayOneShot(_buttonClick);
|
||||
|
||||
if (_isCooking)
|
||||
return;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
BIN
3d Prototyp/Assets/SoundEffects/ButtonClick.wav
Normal file
BIN
3d Prototyp/Assets/SoundEffects/ButtonClick.wav
Normal file
Binary file not shown.
23
3d Prototyp/Assets/SoundEffects/ButtonClick.wav.meta
Normal file
23
3d Prototyp/Assets/SoundEffects/ButtonClick.wav.meta
Normal file
@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2892c69694b7d7a41b996417f274c16f
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user