chill out bro:
This commit is contained in:
parent
cbbf55a48a
commit
ddd02953da
10 changed files with 178 additions and 7 deletions
|
@ -10,6 +10,14 @@ extends CharacterBody2D
|
|||
@export var state_chart: StateChart
|
||||
@export var graphics: Node2D
|
||||
|
||||
var ices_touched:int = 0:
|
||||
set(value):
|
||||
ices_touched = value
|
||||
if ices_touched <= 0:
|
||||
ices_touched = 0
|
||||
state_chart.send_event(&"ground_touched")
|
||||
else:
|
||||
state_chart.send_event(&"ice_touched")
|
||||
|
||||
#region Notifications
|
||||
func _ready() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue