Every card was KUNG FU FIGHTING
This commit is contained in:
@@ -83,7 +83,15 @@ namespace UI.CardSystem.DragDrop
|
||||
_lastClickTime = Time.time;
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnDragStartedHook()
|
||||
{
|
||||
base.OnDragStartedHook();
|
||||
// Play pickup audio
|
||||
AudioManager.Instance.LoadAndPlayUIAudio($"random_paper_pickup", false);
|
||||
AudioManager.Instance.LoadAndPlayUIAudio($"shimmering_loop", true);
|
||||
}
|
||||
|
||||
|
||||
protected override void OnDragEndedHook()
|
||||
{
|
||||
base.OnDragEndedHook();
|
||||
@@ -127,6 +135,10 @@ namespace UI.CardSystem.DragDrop
|
||||
Logging.Debug($"[BoosterPackDraggable] No valid slot found, snapping back to current slot");
|
||||
AssignToSlot(CurrentSlot, true);
|
||||
}
|
||||
// Play random put down paper audio
|
||||
AudioManager.Instance.LoadAndPlayUIAudio($"random_paper_putdown", false);
|
||||
// Stop the shimmer loop
|
||||
AudioManager.Instance.uiMusicSource.Stop();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -134,7 +134,9 @@ namespace UI.CardSystem.StateMachine
|
||||
public void PlayFlip(Transform cardBack, Transform cardFront, float? duration = null, Action onComplete = null)
|
||||
{
|
||||
float flipDuration = duration ?? _settings.FlipDuration;
|
||||
|
||||
// Play feedback sound
|
||||
AudioManager.Instance.LoadAndPlayUIAudio("card_reveal_swoosh", false);
|
||||
|
||||
// Phase 1: Rotate both to 90 degrees (edge view)
|
||||
if (cardBack != null)
|
||||
{
|
||||
|
||||
@@ -25,6 +25,10 @@ namespace UI.CardSystem.StateMachine.States
|
||||
|
||||
public override void OnEnterState()
|
||||
{
|
||||
// Play feedback sound
|
||||
AudioManager.Instance.LoadAndPlayUIAudio("card_reveal_swoosh", false);
|
||||
|
||||
|
||||
// Ensure card front is visible and facing camera
|
||||
if (_context.CardDisplay != null)
|
||||
{
|
||||
|
||||
@@ -28,6 +28,10 @@ namespace UI.CardSystem.StateMachine.States
|
||||
|
||||
public override void OnEnterState()
|
||||
{
|
||||
|
||||
// Play feedback sound
|
||||
AudioManager.Instance.LoadAndPlayUIAudio("card_levelup", false);
|
||||
|
||||
// Ensure card front is visible and facing camera
|
||||
if (_context.CardDisplay != null)
|
||||
{
|
||||
|
||||
@@ -26,6 +26,9 @@ namespace UI.CardSystem.StateMachine.States
|
||||
|
||||
public override void OnEnterState()
|
||||
{
|
||||
// Play reveal audio
|
||||
AudioManager.Instance.LoadAndPlayUIAudio("random_paper_putdown", false);
|
||||
|
||||
// Ensure card front is visible and facing camera
|
||||
if (_context.CardDisplay != null)
|
||||
{
|
||||
|
||||
@@ -403,6 +403,7 @@ namespace UI.CardSystem
|
||||
ShuffleBoostersToFront();
|
||||
|
||||
Logging.Debug($"[BoosterOpeningPage] Booster placed in center, ready for taps. Active boosters in slots: {_activeBoostersInSlots.Count}");
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -446,11 +447,13 @@ namespace UI.CardSystem
|
||||
}
|
||||
|
||||
// Cycle through audio clips depending on how much the booster was tapped
|
||||
if (currentTaps <= maxTaps)
|
||||
if (currentTaps <= maxTaps-1)
|
||||
{
|
||||
AudioManager.Instance.LoadAndPlayUIAudio($"buildup_loop{currentTaps}",true);
|
||||
}
|
||||
|
||||
// Play a random swoosh clip
|
||||
AudioManager.Instance.LoadAndPlayUIAudio($"random_swoosh", false);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -478,6 +481,8 @@ namespace UI.CardSystem
|
||||
|
||||
// Play fanfare audio clio
|
||||
AudioManager.Instance.LoadAndPlayUIAudio("Fanfare",false);
|
||||
// Play shimmering background music
|
||||
AudioManager.Instance.LoadAndPlayUIAudio($"shimmering_loop", true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -621,9 +626,10 @@ namespace UI.CardSystem
|
||||
if (_activeCard == null && card.IsIdle && card.Context.IsClickable)
|
||||
{
|
||||
Logging.Debug($"[BoosterOpeningPage] Card {card.CardData?.Name} selected for reveal");
|
||||
|
||||
|
||||
// Set as active and disable all other idle cards
|
||||
_activeCard = card;
|
||||
|
||||
foreach (var otherCard in _currentCards)
|
||||
{
|
||||
if (otherCard != card && otherCard.IsIdle)
|
||||
@@ -631,6 +637,8 @@ namespace UI.CardSystem
|
||||
otherCard.Context.IsClickable = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Click will route to IdleState automatically and trigger flip
|
||||
}
|
||||
@@ -693,6 +701,7 @@ namespace UI.CardSystem
|
||||
|
||||
// Unlock center slot
|
||||
centerOpeningSlot.SetLocked(false);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -738,7 +747,10 @@ namespace UI.CardSystem
|
||||
float totalAnimationTime = _currentCardData.Length * 0.5f;
|
||||
_currentRevealedCards.Clear();
|
||||
_currentCards.Clear();
|
||||
|
||||
|
||||
// Stop the shimmering audio
|
||||
AudioManager.Instance.uiMusicSource.Stop();
|
||||
|
||||
yield return new WaitForSeconds(totalAnimationTime);
|
||||
}
|
||||
|
||||
@@ -767,6 +779,11 @@ namespace UI.CardSystem
|
||||
|
||||
_currentBoosterInCenter = null;
|
||||
_isProcessingOpening = false;
|
||||
|
||||
// Stop all UI audio
|
||||
AudioManager.Instance.uiAudioSource.Stop();
|
||||
AudioManager.Instance.uiMusicSource.Stop();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user