Auch das war unerlässlich

This commit is contained in:
Simon Lübeß
2024-04-09 01:23:14 +02:00
parent f405a0ef9f
commit 4ab8603cfb
5 changed files with 136 additions and 2 deletions

View File

@ -4,9 +4,16 @@ namespace Interaction
{
public class Copier : MonoBehaviour
{
public AudioSource _audioSource;
public AudioClip _deny;
public void Copy()
{
Debug.Log("Kopierer erfolgreich benutzt!");
if (!_audioSource.isPlaying)
_audioSource.Play();
else
_audioSource.PlayOneShot(_deny);
}
}
}