deleted colliders now freed properly

This commit is contained in:
Leon Palluch committed 2020-02-02 13:18:18 +01:00
1 parent 9defb29c04
commit bf76603c08
7 files changed
+1145 -1

No files matched your search

+3 -1
View File
@@ -51,7 +51,6 @@ func _ready():
func change_count_ui():
if done_player_count == null:
print("test")
done_player_count = 0
_playerNum.text = str(done_player_count + 1) + "/" + str(InGameState.player_count)
@@ -169,6 +168,9 @@ func delete_body_part():
var body_part = _attachment_point.get_node("Limb").get_child(0)
if body_part != null:
_costProgress.value -= body_part.cost
#delete collider with id
var old_col_path = "LimbCollider" + str(_attachment_point.id)
_torso.get_node(old_col_path).queue_free()
body_part.queue_free()