ScoreCounterLabel.gd 148 B

12345678910111213
  1. extends Label
  2. var total_score = 0
  3. func score_point():
  4. total_score += 1
  5. text = str(total_score)
  6. func _on_Grid_kace_damaged():
  7. score_point()