Skip to content

Commit

Permalink
chore(card_base.gd): 添加 get_word()
Browse files Browse the repository at this point in the history
  • Loading branch information
cutekibry committed Feb 8, 2024
1 parent 7be6967 commit 43f3648
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion objects/card_base/card_base.gd
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func _input_event(viewport: Object, event: InputEvent, shape_idx: int) -> void:

func set_word(e: String) -> void:
$Word.set_word(e)

func get_word() -> String:
return $Word.get_word()

func _on_card_put():
emit_signal("card_put")
Expand All @@ -85,7 +88,7 @@ func set_victory() -> void:
$Label.set_visible(false)

for card: Card in $Cards.get_children():
card.is_victory = true
card.set_victory(true)

func reset_all_card_position():
for card: Card in $Cards.get_children():
Expand Down

0 comments on commit 43f3648

Please sign in to comment.