feat: 1.添加统计面板, 2. 游戏暂停标志 Global.paused
This commit is contained in:
@@ -18,6 +18,9 @@ func _ready() -> void:
|
||||
atk_start_pos = sprite_2d.position
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if Global.game_paused:
|
||||
return
|
||||
|
||||
if not is_attacking:
|
||||
if targets.size() > 0:
|
||||
update_closest_target()
|
||||
|
||||
Reference in New Issue
Block a user