GENERATION.gd 273 B

12345678910111213141516
  1. extends Label
  2. # Declare member variables here. Examples:
  3. # var a = 2
  4. # var b = "text"
  5. # Called when the node enters the scene tree for the first time.
  6. func _ready():
  7. update_generation(0)
  8. func update_generation (generation):
  9. text = "GENERATION: " + str(generation)