changes to coinHUD

This commit is contained in:
2022-08-01 15:05:09 -04:00
parent 2be22ceb68
commit e54e3b0687
5 changed files with 77 additions and 55 deletions

View File

@@ -38,7 +38,13 @@ void GoalNotReached::_state_exit()
void GoalNotReached::_on_Goal_body_entered(Node *node)
{
auto parent_node = get_parent();
if (parent_node != nullptr)
{
auto goal = Object::cast_to<Area2D>(parent_node);
goal->set_collision_mask_bit(0, false);
}
get_state_machine()->change("GoalReached");