Added AbstractState and StateMachine
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
class_name AbstractState
|
||||
extends Node
|
||||
|
||||
|
||||
@warning_ignore("unused_signal")
|
||||
signal new_state(state: AbstractState)
|
||||
|
||||
|
||||
func enter() -> void:
|
||||
pass
|
||||
|
||||
|
||||
func exit() -> void:
|
||||
pass
|
||||
|
||||
|
||||
@warning_ignore("unused_parameter")
|
||||
func process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
@warning_ignore("unused_parameter")
|
||||
func physics_process(delta: float) -> void:
|
||||
pass
|
||||
Reference in New Issue
Block a user