1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-03 18:27:13 +08:00

refactor(Statemachine): 使用GameRule配置物品展示停留时间

将ItemShow中的硬编码等待时间改为使用GameRule.itemShowStayTime配置
This commit is contained in:
2025-08-28 07:50:13 +08:00
parent ae77d624b1
commit 857a224f6f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ class_name ItemShow
func _ready():
if autoFree:
await TickTool.millseconds(2000) # 等待1秒后自动隐藏
await TickTool.millseconds(GameRule.itemShowStayTime) # 等待秒后自动隐藏
animator.play("hide")
await animator.animation_finished
queue_free()