Every card was KUNG FU FIGHTING
This commit is contained in:
@@ -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