[gd_scene load_steps=6 format=2]

[ext_resource path="res://textures/enemies/yesman.png" type="Texture" id=1]
[ext_resource path="res://objects/enemies/yesman/Yesman.gd" type="Script" id=2]

[sub_resource type="BoxShape" id=1]
extents = Vector3( 1, 1.46298, 1 )

[sub_resource type="SphereShape" id=2]
radius = 1.52497

[sub_resource type="CylinderShape" id=3]
radius = 30.0
height = 10.9712

[node name="Yesman" type="KinematicBody" groups=[
"entity",
"yesman",
]]
pause_mode = 1
script = ExtResource( 2 )

[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform( 0.35, 0, 0, 0, 0.35, 0, 0, 0, 1, 0, 0, 0 )
flip_h = true
texture = ExtResource( 1 )

[node name="CollisionShape" type="CollisionShape" parent="."]
shape = SubResource( 1 )

[node name="Hurt" type="AudioStreamPlayer3D" parent="."]
unit_db = 6.0
max_db = 6.0

[node name="Attack" type="Area" parent="."]

[node name="CollisionShape" type="CollisionShape" parent="Attack"]
shape = SubResource( 2 )

[node name="Follow" type="Area" parent="."]

[node name="CollisionShape" type="CollisionShape" parent="Follow"]
shape = SubResource( 3 )

[node name="RayCast" type="RayCast" parent="."]

[connection signal="body_entered" from="Attack" to="." method="_on_Attack_body_entered"]
[connection signal="body_entered" from="Follow" to="." method="_on_Follow_body_entered"]
