menu + player

This commit is contained in:
2024-10-18 23:49:52 +02:00
parent cd190ad354
commit 67b81ee481
5 changed files with 74 additions and 5 deletions

32
script/Menu.cs Normal file
View File

@@ -0,0 +1,32 @@
using Godot;
using System;
public partial class Menu : Control
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
public void ResumeDown()
{
GetTree().Paused = false;
Input.MouseMode = Input.MouseModeEnum.Hidden;
Visible = false;
}
public void OptionDown()
{
}
public void ExitDown()
{
GetTree().Quit();
}
}