Start of rewind system
This commit is contained in:
parent
a293242cb7
commit
42c95820d7
16 changed files with 55 additions and 33 deletions
|
|
@ -70,12 +70,12 @@ func _enter() -> void:
|
|||
func _exit() -> void:
|
||||
super()
|
||||
|
||||
func use_begin() -> void:
|
||||
func use_begin(timestamp: float) -> void:
|
||||
if current_state != null:
|
||||
current_state.use_begin()
|
||||
func use_end() -> void:
|
||||
current_state.use_begin(timestamp)
|
||||
func use_end(timestamp: float) -> void:
|
||||
if current_state != null:
|
||||
current_state.use_end()
|
||||
current_state.use_end(timestamp)
|
||||
func alternate_state() -> void:
|
||||
if current_state != null:
|
||||
current_state.alternate_state()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue