public void Init(DialogRequester dialogRequester, GameModel gameModel) { _dialogRequester = dialogRequester; _dialogRequester.SetAvalibleDialogues(_currentStep.AvalibleCharacters); _currentStep.Init(); _gameModel = gameModel; }
private void OnStepChange() { _currentStep.DeInit(); _currentStep = _currentStep.NextStep; _dialogRequester.SetAvalibleDialogues(_currentStep.AvalibleCharacters); _currentStep.Init(); if (_currentStep.GameState != GameState.Default) { _gameModel.ChangeState(_currentStep.GameState); } }