1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Statemachine/Watcher.gd
T

14 lines
217 B
GDScript
Raw Normal View History

class_name Watcher
signal changed()
var currentState = null
func _init(initialState):
currentState = initialState
func setState(newState):
if newState != currentState:
currentState = newState
changed.emit()