Freememory.gd 201 B

1234567891011
  1. extends Area2D
  2. func get_world():
  3. return get_parent().get_parent()
  4. func get_level():
  5. return get_parent()
  6. func _on_Point_of_nonreturn_body_entered(body):
  7. get_world().unload_prev_level(get_level())