deleted colliders now freed properly
This commit is contained in:
1 parent
9defb29c04
commit
bf76603c08
7 files changed
+1145
-1
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user