Minigame audio and intros p1
This commit is contained in:
@@ -7,6 +7,7 @@ using Input;
|
||||
using Minigames.CardSorting.Controllers;
|
||||
using Unity.Cinemachine;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Audio;
|
||||
|
||||
namespace Minigames.CardSorting.Core
|
||||
{
|
||||
@@ -72,6 +73,10 @@ namespace Minigames.CardSorting.Core
|
||||
public event Action<SortableItem> OnItemSortedCorrectly;
|
||||
public event Action<SortableItem> OnItemSortedIncorrectly;
|
||||
public event Action<SortableItem> OnItemFellOffBelt;
|
||||
|
||||
// Sound effects
|
||||
public AppleAudioSource audioSource;
|
||||
public AudioResource introAudio;
|
||||
|
||||
internal override void OnManagedAwake()
|
||||
{
|
||||
@@ -194,6 +199,10 @@ namespace Minigames.CardSorting.Core
|
||||
}
|
||||
|
||||
Logging.Debug("[SortingGameManager] Game started!");
|
||||
audioSource.audioSource.resource = introAudio;
|
||||
audioSource.Play(0);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user