UE5風(fēng)格化伊斯坦布爾小鎮(zhèn)場景全流程實戰(zhàn)教學(xué)
? ? currentState = defaultState;
? ?}
? ?void FixedUpdate()
? ?{
? ? ? ?BaseState nextStateType = currentState.Tick();
? ? ? ?if (nextStateType != currentState)
? ? ? ?{
? ? ? ? ? ?nextStateType.OnStateStart();
? ? ? ? ? ?currentState.OnStateExit();
? ? ? ?}
? ? ? ?currentState = nextStateType;
標(biāo)簽: