toutGlobalement
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user