Some bug fixes

This commit is contained in:
Rendo 2025-12-07 15:59:37 +05:00
commit 3c50aeae5f
2 changed files with 9 additions and 5 deletions

View file

@ -63,14 +63,18 @@ func exit() -> void:
@rpc("authority","call_local","reliable")
func use_begin() -> void:
current_state.use_begin()
if current_state != null:
current_state.use_begin()
@rpc("authority","call_local","reliable")
func use_end() -> void:
current_state.use_end()
if current_state != null:
current_state.use_end()
func alternate_state() -> void:
current_state.alternate_state()
if current_state != null:
current_state.alternate_state()
# Need to clarify naming; Switch mode like firemode. For different states use
# alternate_state
func switch_mode() -> void:
current_state.switch_mode()
if current_state != null:
current_state.switch_mode()