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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user