修复状态机

This commit is contained in:
Bob.Song
2026-03-10 17:17:29 +08:00
parent d17d13d7e7
commit 5de02db271
3 changed files with 8 additions and 2 deletions

View File

@@ -74,6 +74,8 @@ namespace NBF
public void InitPlayer(MapUnitInfo unitInfo)
{
PreviousState = PlayerState.None;
State = PlayerState.Idle;
AddComponent<PlayerView>();
AddComponent<PlayerStateView>();
if (unitInfo.Id == RoleModel.Instance.Id)