broken_seals_roguelike/game/ui/player_ui/RemoveProfile.gd

22 lines
609 B
GDScript3
Raw Normal View History

extends Button
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
connect("pressed", self, "_on_pressed")
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_pressed():
var d : Directory = Directory.new()
d.remove("user://profile.save")