-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.tscn
76 lines (54 loc) · 1.97 KB
/
test.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
[gd_scene load_steps=9 format=3 uid="uid://dohaw8hgir7if"]
[sub_resource type="GDScript" id="GDScript_ail2h"]
script/source = "extends Control
@export var a := []
"
[sub_resource type="GDScript" id="GDScript_083fr"]
script/source = "extends State
func _initialize() -> void:
pass
func _entry() -> void:
print(get_name())
func _update(delta: float) -> void:
pass
func _physics_update(delta: float) -> void:
pass
func _exit() -> void:
pass
"
[sub_resource type="StateConfig" id="StateConfig_5di8b"]
state_script = SubResource("GDScript_083fr")
type = 1
editor_offset = Vector2(60, 80)
[sub_resource type="StateConfig" id="StateConfig_363f5"]
state_script = SubResource("GDScript_083fr")
state_name = &"@state"
editor_offset = Vector2(763, 63)
[sub_resource type="TransitionConfig" id="TransitionConfig_neh1l"]
from_state_config = SubResource("StateConfig_5di8b")
to_state_config = SubResource("StateConfig_363f5")
type = 1
expression_text = "Input.is_action_just_pressed(\"ui_accept\")"
expression_comment = "test"
[sub_resource type="TransitionConfig" id="TransitionConfig_viqm8"]
from_state_config = SubResource("StateConfig_363f5")
to_state_config = SubResource("StateConfig_5di8b")
[sub_resource type="VariableConfig" id="VariableConfig_d1m4x"]
variable_name = &"walking"
type = 3
default_value = null
resource_name = "walking: Float"
[sub_resource type="FSMConfig" id="FSMConfig_e35ka"]
state_config_list = Array[StateConfig]([SubResource("StateConfig_5di8b"), SubResource("StateConfig_363f5")])
transition_config_list = Array[TransitionConfig]([SubResource("TransitionConfig_neh1l"), SubResource("TransitionConfig_viqm8")])
variable_config_list = Array[VariableConfig]([SubResource("VariableConfig_d1m4x")])
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = SubResource("GDScript_ail2h")
[node name="HFSM" type="HFSM" parent="."]
root_fsm_config = SubResource("FSMConfig_e35ka")