主题
ControllerStateType
ControllerStateType 枚举定义了角色控制器可能处于的各种行为状态,如待机、移动、跳跃、攀爬、死亡等。通过监听控制器的状态变化事件,可以在不同状态间切换时触发对应的游戏逻辑。
概览
ControllerStateType 枚举定义了角色控制器可能处于的各种行为状态,如待机、移动、跳跃、攀爬、死亡等。通过监听控制器的状态变化事件,可以在不同状态间切换时触发对应的游戏逻辑。
继承自
String;枚举类型
枚举值
| 值 | 名称 | 说明 |
|---|---|---|
Idle | Idle | 待机 |
Moving | Moving | 移动 |
Jumping | Jumping | 跳跃 |
Dead | Dead | 死亡 |
LostControl | LostControl | 失控 |
ResumeControl | ResumeControl | 恢复控制 |
Climbing | Climbing | 攀爬 |
Seated | Seated | 乘坐 |
PlatformStanding | PlatformStanding | PlatformStand 状态:自主移动禁用、外力可推、跳跃不退出 |
Swimming | Swimming | 游泳 |
EggyRush | EggyRush | 蛋仔前仆 |
EggyRoll | EggyRoll | 蛋仔滚动 |
EggyLifted | EggyLifted | 蛋仔被抓举 |
EggyLiftStart | EggyLiftStart | 蛋仔开始抓举 |
EggyLiftThrow | EggyLiftThrow | 蛋仔开始扔掉抓举单位 |
HumanRun | HumanRun | 人形生物跑步 |
HumanCrouchIdle | HumanCrouchIdle | 人形蹲下静止状态 |
HumanCrouchMove | HumanCrouchMove | 人形蹲下移动状态 |
