fixed a bug where the puase menu couldnt be closed by pressing the pause button again

This commit is contained in:
JHDev2006
2025-09-28 21:52:14 +01:00
parent c0f2044a1e
commit 1711402a6a
4 changed files with 36 additions and 22 deletions

View File

@@ -8,6 +8,21 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dnx1i"]
size = Vector2(10, 8)
[sub_resource type="Animation" id="Animation_5y583"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
[sub_resource type="Animation" id="Animation_dnx1i"]
resource_name = "Shake"
length = 0.2
@@ -25,21 +40,6 @@ tracks/0/keys = {
"values": [Vector2(-1, 0), Vector2(1, 0)]
}
[sub_resource type="Animation" id="Animation_5y583"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2sios"]
_data = {
&"RESET": SubResource("Animation_5y583"),