Auch das war unerlässlich
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user