toutGlobalement

This commit is contained in:
2024-10-19 15:17:39 +02:00
parent 93a468a604
commit dbad63f3b0
19 changed files with 1464 additions and 47 deletions

View File

@@ -3,6 +3,7 @@ using System;
public partial class Menu : Control
{
[Export] AnimationPlayer anim;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
@@ -15,9 +16,9 @@ public partial class Menu : Control
public void ResumeDown()
{
GetTree().Paused = false;
Input.MouseMode = Input.MouseModeEnum.Hidden;
Visible = false;
anim.Play("resume");
}
public void OptionDown()
@@ -29,4 +30,9 @@ public partial class Menu : Control
{
GetTree().Quit();
}
public void Res()
{
GetTree().Paused = false;
}
}