diff options
Diffstat (limited to 'Thronefall_1_0/GameCode/PlayOneShotAfterSeconds.cs')
| -rw-r--r-- | Thronefall_1_0/GameCode/PlayOneShotAfterSeconds.cs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Thronefall_1_0/GameCode/PlayOneShotAfterSeconds.cs b/Thronefall_1_0/GameCode/PlayOneShotAfterSeconds.cs deleted file mode 100644 index 1bf1a43..0000000 --- a/Thronefall_1_0/GameCode/PlayOneShotAfterSeconds.cs +++ /dev/null @@ -1,22 +0,0 @@ -using UnityEngine; - -public class PlayOneShotAfterSeconds : MonoBehaviour -{ - public float initialDelay = 1f; - - public ThronefallAudioManager.AudioOneShot type; - - private float timer; - - private void Update() - { - if (timer <= initialDelay) - { - timer += Time.deltaTime; - if (timer > initialDelay) - { - ThronefallAudioManager.WorldSpaceOneShot(type, base.transform.position); - } - } - } -} |
