1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Tools/TickTool.gd
T

8 lines
220 B
GDScript
Raw Normal View History

class_name TickTool
static func millseconds(ms: int):
return await WorldManager.tree.create_timer(ms / 1000.0).timeout
static func frame(count: int = 1):
for i in range(count):
await WorldManager.tree.physics_frame