planete.gd 283 B

123456789101112
  1. class_name Planete
  2. extends Sprite2D
  3. signal niveau_choisi(PackedScene)
  4. @export var niveau: PackedScene
  5. func _quand_cliquable_recoit_evenement(_vue: Node, evenement: InputEvent, _index_forme: int) -> void:
  6. if evenement.is_action_released("ui_clic"):
  7. niveau_choisi.emit(niveau)