Files

37 lines
523 B
Markdown
Raw Normal View History

2024-10-16 00:03:41 +08:00
# FSMController.GetInt
### 方法:
public int GetInt(string name);
### 说明:
获取Int类型参数的值
### 参数
| 名称 | 说明 |
| ----------- | ----------- |
| name | 参数名称 |
### 代码示例:
> ```none
>
>public class TestFSMController : MonoBehaviour
>{
> private FSMController controller;
>
> void Start()
> {
> controller = GetComponent<FSMController>();
> // 获取New Int参数的值
> controller.GetInt("New Int");
> }
>}
>
> ```