Irgendjemand musste es ja machen...

This commit is contained in:
Simon Lübeß
2024-04-09 01:17:44 +02:00
parent 288678f3b5
commit f405a0ef9f
39 changed files with 1727 additions and 419 deletions

View File

@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Toilette : MonoBehaviour
{
public AudioSource AudioSource;
private bool _canFlush = true;
public void Flush()
{
if (_canFlush)
StartCoroutine(FlushRoutine());
}
private IEnumerator FlushRoutine()
{
_canFlush = false;
AudioSource.Play();
yield return new WaitForSeconds(5);
_canFlush = true;
}
}