[gd_scene load_steps=7 format=3 uid="uid://dnbtou2fklyvp"]

[ext_resource type="Texture2D" uid="uid://bodoftbnvjh6i" path="res://Sprites/Actors/AlertSign.png" id="4_7ysp5"]
[ext_resource type="Script" uid="uid://daqdq17qiessy" path="res://Scripts/Components/AlarmSpriteSwitcher.cs" id="5_qohod"]

[sub_resource type="AtlasTexture" id="AtlasTexture_adk1y"]
atlas = ExtResource("4_7ysp5")
region = Rect2(16, 0, 16, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_jdxjv"]
atlas = ExtResource("4_7ysp5")
region = Rect2(32, 0, 16, 8)

[sub_resource type="AtlasTexture" id="AtlasTexture_jkso3"]
atlas = ExtResource("4_7ysp5")
region = Rect2(0, 0, 16, 8)

[sub_resource type="SpriteFrames" id="SpriteFrames_25o7d"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_adk1y")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_jdxjv")
}],
"loop": true,
"name": &"alarmed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_jkso3")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="AlarmSign" type="Node2D"]

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_25o7d")

[node name="SpriteSwitcher" type="Node2D" parent="." node_paths=PackedStringArray("_sprite")]
script = ExtResource("5_qohod")
_sprite = NodePath("../AnimatedSprite2D")
