22 lines
390 B
GDScript
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
|