Made intro VO play in diving minigame

This commit is contained in:
2025-11-10 13:13:32 +01:00
parent c99aad49f3
commit f44f8c5171
2 changed files with 18 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ using Input;
using Pixelplacement;
using UI.Core;
using UnityEngine;
using UnityEngine.Audio;
namespace UI.Tutorial
{
@@ -19,6 +20,8 @@ namespace UI.Tutorial
private StateMachine _stateMachine;
public bool playTutorial;
public AudioSource bottleAudioPlayer;
public AudioResource introVO;
[SerializeField] private ProgressType progressType = ProgressType.Auto;
// gating for input until current state's animation finishes first loop
@@ -76,6 +79,8 @@ namespace UI.Tutorial
tapPrompt.SetActive(false);
Destroy(gameObject);
bottleAudioPlayer.resource = introVO;
bottleAudioPlayer.Play();
}
public void OnTap(Vector2 position)