planete.gd 250 B

123456789101112131415
  1. class_name Planete
  2. extends BaseButton
  3. signal niveau_choisi(PackedScene)
  4. @export var niveau: PackedScene
  5. func _ready() -> void:
  6. pressed.connect(_quand_planete_est_cliquee)
  7. func _quand_planete_est_cliquee() -> void:
  8. niveau_choisi.emit(niveau)