modify scripts

This commit is contained in:
2025-10-17 10:59:23 +08:00
parent 9336ed0d6f
commit 4f782a638e
131 changed files with 79880 additions and 3549 deletions

View File

@ -37,7 +37,6 @@ namespace WordsToolkit.Scripts.Gameplay
private Color[] openColors = new Color[3];
private bool isSelected = false;
private int wordNumber = -1;
private bool isOpen = false;
[Header("Special Item")]
@ -321,6 +320,8 @@ namespace WordsToolkit.Scripts.Gameplay
// Only respond if the tile is selectable and closed
if (!isOpen && levelManager != null && levelManager.hammerMode)
{
// Immediately disable hammer mode to prevent multiple uses
levelManager.hammerMode = false;
// Instead of opening immediately, play hammer animation first
PlayHammerAnimationAndOpen();
}