Advertisement
Neverknow247

main_menu.gd

Oct 18th, 2023
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDScript 0.38 KB | Gaming | 0 0
  1. extends Control
  2.  
  3. var stats = Stats
  4.  
  5. @onready var save_name_label = $save_name_label
  6.  
  7. func _ready():
  8.     SaveAndLoad.update_save_data()
  9.     save_name_label.text = stats.save_data.save_name
  10.  
  11. func _on_button_pressed():
  12.     get_tree().change_scene_to_file("res://menus/volume_menu.tscn")
  13.  
  14. func _on_back_button_pressed():
  15.     get_tree().change_scene_to_file("res://menus/save_select_screen.tscn")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement