You've already forked taptap2024_GJ_chidouren
35 lines
665 B
Markdown
35 lines
665 B
Markdown
|
|
# FSMController.RuntimeFSMController
|
||
|
|
|
||
|
|
|
||
|
|
### 属性:
|
||
|
|
|
||
|
|
public List<*RuntimeFSMController*> RuntimeFSMController;
|
||
|
|
|
||
|
|
### 说明:
|
||
|
|
|
||
|
|
当前状态机执行的状态配置文件列表
|
||
|
|
|
||
|
|
可在下图中配置:
|
||
|
|
|
||
|
|

|
||
|
|
|
||
|
|
### 代码示例:
|
||
|
|
|
||
|
|
> ```none
|
||
|
|
>
|
||
|
|
>public class TestFSMController : MonoBehaviour
|
||
|
|
>{
|
||
|
|
> private FSMController controller;
|
||
|
|
>
|
||
|
|
> // Start is called before the first frame update
|
||
|
|
> void Start()
|
||
|
|
> {
|
||
|
|
> controller = GetComponent<FSMController>();
|
||
|
|
> foreach (var item in controller.RuntimeFSMController)
|
||
|
|
> {
|
||
|
|
> Debug.LogFormat("状态配置名称:{0}", item.name);
|
||
|
|
> }
|
||
|
|
> }
|
||
|
|
>}
|
||
|
|
>
|
||
|
|
> ```
|