mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
492373a48e
新增角色卡片组件和角色选择逻辑 实现角色卡片动画效果和交互功能 添加初始角色数据配置 修改启动面板以支持角色选择 更新主题样式和UI布局
14 lines
217 B
GDScript
14 lines
217 B
GDScript
class_name Watcher
|
|
|
|
signal changed()
|
|
|
|
var currentState = null
|
|
|
|
func _init(initialState):
|
|
currentState = initialState
|
|
|
|
func setState(newState):
|
|
if newState != currentState:
|
|
currentState = newState
|
|
changed.emit()
|