Update demo and remove debug prints

This commit is contained in:
Serhii Snitsaruk 2023-09-19 13:53:01 +02:00
parent 9a4fd8ad12
commit e7687d7a57
2 changed files with 1 additions and 3 deletions

View File

@ -25,7 +25,7 @@ func _generate_name() -> String:
LimboUtility.decorate_var(speed_var),
]
func _tick(p_delta: float) -> int:
func _tick(p_delta: float) -> Status:
var target_pos: Vector2 = blackboard.get_var(target_position_var, Vector2.ZERO)
if target_pos.distance_to(agent.global_position) < tolerance:
return SUCCESS

View File

@ -74,7 +74,6 @@ void LimboDebugger::register_bt_instance(Ref<BTTask> p_instance, NodePath p_play
if (active_trees.has(p_player_path)) {
return;
}
print_line("DEBUG :: register :: ", p_player_path);
active_trees.insert(p_player_path, p_instance);
if (session_active) {
@ -85,7 +84,6 @@ void LimboDebugger::register_bt_instance(Ref<BTTask> p_instance, NodePath p_play
void LimboDebugger::unregister_bt_instance(Ref<BTTask> p_instance, NodePath p_player_path) {
ERR_FAIL_COND(p_instance.is_null());
ERR_FAIL_COND(p_player_path.is_empty());
print_line("DEBUG :: unregister :: ", p_player_path);
ERR_FAIL_COND(!active_trees.has(p_player_path));
if (tracked_tree == p_player_path) {