修复状态机

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

@@ -28,6 +28,8 @@ namespace NBF
{
playerStageView.Init(_player);
}
OnStageChange();
}
public void Update()
@@ -43,7 +45,7 @@ namespace NBF
}
_currentStateView = _stageViews.GetValueOrDefault(_player.State);
_currentStateView.Enter(_player.StateParams, _player.PreviousState);
_currentStateView?.Enter(_player.StateParams, _player.PreviousState);
}
}