Added heartbeat SFX to doggie surgery scene. And also dead doggie.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
public class DelayEvent : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float _delayInSeconds;
|
||||
[SerializeField] private UnityEvent _event;
|
||||
|
||||
public void InvokeDelayed()
|
||||
{
|
||||
Invoke(nameof(InvokeEvent), _delayInSeconds);
|
||||
}
|
||||
|
||||
private void InvokeEvent()
|
||||
{
|
||||
_event?.Invoke();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1428aa8d322816b65abbe1103c4dda45
|
||||
Reference in New Issue
Block a user