Fixed some errors

This commit is contained in:
Rendo 2025-12-09 23:54:02 +05:00
commit e6a47a4772
9 changed files with 32 additions and 32 deletions

View file

@ -13,6 +13,8 @@ func _ready() -> void:
else:
push_warning("Child of state machine is not state")
await get_tree().process_frame
await get_tree().process_frame
current_state.enter()
func on_transition_required(to: StringName):

View file

@ -5,10 +5,11 @@ class_name SubStateMachine
@export var enter_state: State
func _enter() -> void:
change_state(enter_state)
if is_multiplayer_authority():
change_state(enter_state)
func _exit() -> void:
current_state.exit()
pass
func update(delta: float) -> void:
if current_state == null: