Click und Anfang der Prefabisierung

This commit is contained in:
Simon Lübeß 2024-04-07 17:30:22 +02:00
parent 0606b1936d
commit 543b35567a
4 changed files with 2653 additions and 4510 deletions

View File

@ -8,6 +8,12 @@ using Utility;
public class CoffeeMachine : MonoBehaviour public class CoffeeMachine : MonoBehaviour
{ {
[SerializeField]
private AudioClip _buttonClick;
[SerializeField]
private AudioSource _audioSource;
[SerializeField] [SerializeField]
private List<CoffeePlace> _coffeePlaces = new(); private List<CoffeePlace> _coffeePlaces = new();
@ -19,7 +25,7 @@ public class CoffeeMachine : MonoBehaviour
public void CookCoffee() public void CookCoffee()
{ {
// TODO: Play beep sound _audioSource.PlayOneShot(_buttonClick);
if (_isCooking) if (_isCooking)
return; return;

File diff suppressed because it is too large Load Diff

View 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: