Update demo and remove debug prints
This commit is contained in:
parent
9a4fd8ad12
commit
e7687d7a57
|
@ -25,7 +25,7 @@ func _generate_name() -> String:
|
||||||
LimboUtility.decorate_var(speed_var),
|
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)
|
var target_pos: Vector2 = blackboard.get_var(target_position_var, Vector2.ZERO)
|
||||||
if target_pos.distance_to(agent.global_position) < tolerance:
|
if target_pos.distance_to(agent.global_position) < tolerance:
|
||||||
return SUCCESS
|
return SUCCESS
|
||||||
|
|
|
@ -74,7 +74,6 @@ void LimboDebugger::register_bt_instance(Ref<BTTask> p_instance, NodePath p_play
|
||||||
if (active_trees.has(p_player_path)) {
|
if (active_trees.has(p_player_path)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
print_line("DEBUG :: register :: ", p_player_path);
|
|
||||||
|
|
||||||
active_trees.insert(p_player_path, p_instance);
|
active_trees.insert(p_player_path, p_instance);
|
||||||
if (session_active) {
|
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) {
|
void LimboDebugger::unregister_bt_instance(Ref<BTTask> p_instance, NodePath p_player_path) {
|
||||||
ERR_FAIL_COND(p_instance.is_null());
|
ERR_FAIL_COND(p_instance.is_null());
|
||||||
ERR_FAIL_COND(p_player_path.is_empty());
|
ERR_FAIL_COND(p_player_path.is_empty());
|
||||||
print_line("DEBUG :: unregister :: ", p_player_path);
|
|
||||||
ERR_FAIL_COND(!active_trees.has(p_player_path));
|
ERR_FAIL_COND(!active_trees.has(p_player_path));
|
||||||
|
|
||||||
if (tracked_tree == p_player_path) {
|
if (tracked_tree == p_player_path) {
|
||||||
|
|
Loading…
Reference in New Issue