modify scripts
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user