GodotComponentTest/components/ClickableComponent.tscn

18 lines
563 B
Plaintext
Raw Normal View History

2022-08-19 18:48:54 +02:00
[gd_scene load_steps=3 format=2]
2022-08-25 14:10:02 +02:00
[ext_resource path="res://components/ClickableComponent.gd" type="Script" id=1]
2022-08-19 18:48:54 +02:00
[sub_resource type="CircleShape2D" id=1]
radius = 31.4006
[node name="Clickable" type="Node2D"]
script = ExtResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource( 1 )
[connection signal="mouse_entered" from="Area2D" to="." method="_on_Area2D_mouse_entered"]
[connection signal="mouse_exited" from="Area2D" to="." method="_on_Area2D_mouse_exited"]