mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-06 03:37:13 +08:00
feat(工具类): 添加百分比转换工具并重构游戏规则数值
在MathTool中添加percent方法用于百分比转换 重构GameRule中所有百分比相关数值,使用MathTool.percent方法 将itemShowStayTime重命名为itemShowLifetime以更准确表达用途
This commit is contained in:
@@ -14,7 +14,7 @@ func _ready():
|
||||
if autoFree:
|
||||
animator.play("show")
|
||||
await animator.animation_finished
|
||||
await TickTool.millseconds(GameRule.itemShowStayTime) # 等待几秒后自动隐藏
|
||||
await TickTool.millseconds(GameRule.itemShowLifetime) # 等待几秒后自动隐藏
|
||||
animator.play("hide")
|
||||
await animator.animation_finished
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user