修复状态机
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user