lightswitch.tscn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [gd_scene load_steps=5 format=3 uid="uid://dqqox43nstlup"]
  2. [ext_resource type="Script" uid="uid://cau6j0o0julfq" path="res://addons/godot_state_charts/state_chart.gd" id="1_veg0d"]
  3. [ext_resource type="Script" uid="uid://bou0yn8lpwcuh" path="res://addons/godot_state_charts/compound_state.gd" id="2_ici4j"]
  4. [ext_resource type="Script" uid="uid://dyiggrr357tov" path="res://addons/godot_state_charts/atomic_state.gd" id="3_uglt7"]
  5. [ext_resource type="Script" uid="uid://m8bym6l05tkl" path="res://addons/godot_state_charts/transition.gd" id="4_r4ss6"]
  6. [node name="Lightswitch" type="Node2D"]
  7. [node name="Statechart" type="Node" parent="."]
  8. script = ExtResource("1_veg0d")
  9. metadata/_custom_type_script = "uid://cau6j0o0julfq"
  10. [node name="Lightswitch" type="Node" parent="Statechart"]
  11. script = ExtResource("2_ici4j")
  12. initial_state = NodePath("off")
  13. metadata/_custom_type_script = "uid://bou0yn8lpwcuh"
  14. [node name="off" type="Node" parent="Statechart/Lightswitch"]
  15. script = ExtResource("3_uglt7")
  16. metadata/_custom_type_script = "uid://dyiggrr357tov"
  17. [node name="flip" type="Node" parent="Statechart/Lightswitch/off"]
  18. script = ExtResource("4_r4ss6")
  19. to = NodePath("../../on")
  20. event = &"flip"
  21. delay_in_seconds = "0.0"
  22. [node name="on" type="Node" parent="Statechart/Lightswitch"]
  23. script = ExtResource("3_uglt7")
  24. metadata/_custom_type_script = "uid://dyiggrr357tov"
  25. [node name="flip" type="Node" parent="Statechart/Lightswitch/on"]
  26. script = ExtResource("4_r4ss6")
  27. to = NodePath("../../off")
  28. event = &"flip"
  29. delay_in_seconds = "0.0"