carotrauma/scenes/title/QuitButton.cs
Nick Guy de59b2486a
All checks were successful
/ build (push) Successful in 1m41s
Commit of C# project
2024-05-27 19:42:11 +01:00

15 lines
269 B
C#

using Godot;
using System;
public partial class QuitButton : Button
{
// Called when the node enters the scene tree for the first time.
public override void _Ready() {
Text = "Quit";
Pressed += OnPressed;
}
private void OnPressed() {
GetTree().Quit();
}
}