角色动画
This commit is contained in:
@@ -92,7 +92,10 @@ func test_player_scene_has_interact_hint() -> void:
|
||||
|
||||
|
||||
## 挂索/脱手都走 InputMap 的 interact 动作;动作没了按 E 没反应,而且不报错。
|
||||
## 编辑器进程的 InputMap 只带内建动作,项目动作要等游戏进程启动时才 load 进去 ——
|
||||
## 不先补这一步,这条断言在编辑器测试环境里必然假红。
|
||||
func test_interact_action_exists() -> void:
|
||||
InputMap.load_from_project_settings()
|
||||
assert_true(InputMap.has_action(INTERACT_ACTION), "InputMap 里没有 %s 动作" % INTERACT_ACTION)
|
||||
if not InputMap.has_action(INTERACT_ACTION):
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user