extends Area2D

class_name WarpZone

signal player_entered

export(int,-1, 3) var zone = -1;
export var is_exit:bool = true

func _on_body_entered(body:Node):
  if body.name == "Player" and get_parent().is_active_level:
    emit_signal("player_entered", is_exit, zone)
