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

@@ -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);
}
}