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
{
[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;