Fixed double-crouching
This commit is contained in:
parent
dc472515c4
commit
c1548e5451
5 changed files with 12 additions and 15 deletions
|
|
@ -31,7 +31,7 @@ func change_state(to_state: State) -> void:
|
|||
current_state = to_state
|
||||
current_state.enter()
|
||||
|
||||
@rpc
|
||||
@rpc("authority","call_local","reliable")
|
||||
func change_state_to_name(to_name: StringName):
|
||||
if current_state != null:
|
||||
current_state.exit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue