This commit is contained in:
journaliciouz
2025-11-19 23:46:12 +01:00
parent 38466381a5
commit b2c61125ef
11 changed files with 137 additions and 3 deletions

View File

@@ -57,7 +57,8 @@ namespace UI.CardSystem.StateMachine.States
// Enlarge using settings-controlled scale
_context.Animator.PlayEnlarge(_settings.AlbumCardEnlargedScale, _settings.ScaleDuration);
}
// Play pick up card audio
AudioManager.Instance.LoadAndPlayUIAudio("card_albumdrop_deep", false);
Logging.Debug($"[CardAlbumEnlargedState] Card enlarged from album: {_context.CardData?.Name}");
}

View File

@@ -30,6 +30,7 @@ namespace UI.CardSystem.StateMachine.States
public override void OnEnterState()
{
// Ensure card front is visible and facing camera
if (_context.CardDisplay != null)
{
@@ -43,6 +44,8 @@ namespace UI.CardSystem.StateMachine.States
// Animated placement - play tween to slot
Logging.Debug($"[CardPlacedInSlotState] Animating card '{_context.CardData?.Name}' to slot");
AnimateToSlot(_targetSlotForAnimation);
// Play card drop in album sound
AudioManager.Instance.LoadAndPlayUIAudio("card_albumdrop", false);
}
else
{
@@ -54,6 +57,7 @@ namespace UI.CardSystem.StateMachine.States
card.SetDraggingEnabled(false);
}
Logging.Debug($"[CardPlacedInSlotState] Card '{_context.CardData?.Name}' directly placed in slot");
AudioManager.Instance.LoadAndPlayUIAudio("card_albumdrop_deep", false);
}
}

View File

@@ -362,12 +362,16 @@ namespace UI.CardSystem
// Entering album proper and no cards spawned yet - spawn them with animation
Logging.Debug("[AlbumViewPage] Entering album proper - spawning pending cards with animation");
SpawnPendingCornerCards();
// Play flip audio
AudioManager.Instance.LoadAndPlayUIAudio("random_paper_pickup", false);
}
else if (!isInAlbum && CornerCards.PendingCards.Count > 0)
{
// Returning to menu page - cleanup cards
Logging.Debug("[AlbumViewPage] Returning to menu page - cleaning up pending cards");
CleanupPendingCornerCards();
// Play flip audio
AudioManager.Instance.LoadAndPlayUIAudio("random_paper_putdown", false);
}
else
{