Made intro VO play in diving minigame
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user