godot-psd-training/sceen/people/StateMachine/StateBase.gd
2024-06-17 13:15:00 +08:00

22 lines
390 B
GDScript

extends Node3D
## 基础状态
class_name StateBase
var state_machine: StateMachine
## 进入状态
func enter() -> void:
pass
## 退出状态
func exit() -> void:
pass
## 渲染帧触发
@warning_ignore("unused_parameter")
func process_update(delta: float) -> void:
pass
## 物理帧触发
@warning_ignore("unused_parameter")
func physics_process_update(delta: float) -> void:
pass