fixing typo
This commit is contained in:
parent
752131c955
commit
7c3bca07f9
3 changed files with 6 additions and 6 deletions
|
|
@ -3,9 +3,9 @@
|
|||
[ext_resource type="Script" path="res://entities/scripts/bee.gd" id="1_pnu7x"]
|
||||
[ext_resource type="Script" path="res://entities/scripts/finite_state_machine.gd" id="1_t3s5d"]
|
||||
[ext_resource type="Script" path="res://entities/bee/states/bee_idle.gd" id="3_vasc5"]
|
||||
[ext_resource type="Script" path="res://entities/bee/states/bee_traveling.gd" id="4_rr0w6"]
|
||||
[ext_resource type="Script" path="res://entities/bee/states/bee_gather.gd" id="5_4vs4l"]
|
||||
[ext_resource type="Script" path="res://entities/scripts/bee_hit_box.gd" id="5_agq38"]
|
||||
[ext_resource type="Script" path="res://entities/bee/states/bee_travelling.gd" id="5_qtx0r"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_86nxf"]
|
||||
radius = 22.0907
|
||||
|
|
@ -34,8 +34,8 @@ initial_state = NodePath("Idle")
|
|||
[node name="Idle" type="Node" parent="StateMachine"]
|
||||
script = ExtResource("3_vasc5")
|
||||
|
||||
[node name="Traveling" type="Node" parent="StateMachine"]
|
||||
script = ExtResource("4_rr0w6")
|
||||
[node name="Travelling" type="Node" parent="StateMachine"]
|
||||
script = ExtResource("5_qtx0r")
|
||||
|
||||
[node name="Gathering" type="Node" parent="StateMachine"]
|
||||
script = ExtResource("5_4vs4l")
|
||||
|
|
|
|||
|
|
@ -29,9 +29,9 @@ func find_something_to_do():
|
|||
if bee.nectar > 0:
|
||||
## Bee has pollen - head home
|
||||
Log.pr(bee, "I have nectar, I should return to the hive")
|
||||
state_transition.emit(self, "Traveling")
|
||||
state_transition.emit(self, "Travelling")
|
||||
else:
|
||||
## Bee has no pollen - they should move to a flower
|
||||
Log.pr(bee, "I have no nectar, I should find a flower")
|
||||
state_transition.emit(self, "Traveling")
|
||||
state_transition.emit(self, "Travelling")
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
extends State
|
||||
class_name BeeTraveling
|
||||
class_name BeeTravelling
|
||||
|
||||
@export var animator : AnimationPlayer
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue