Пример #1
0
 public void Init(DialogRequester dialogRequester, GameModel gameModel)
 {
     _dialogRequester = dialogRequester;
     _dialogRequester.SetAvalibleDialogues(_currentStep.AvalibleCharacters);
     _currentStep.Init();
     _gameModel = gameModel;
 }
Пример #2
0
 private void OnStepChange()
 {
     _currentStep.DeInit();
     _currentStep = _currentStep.NextStep;
     _dialogRequester.SetAvalibleDialogues(_currentStep.AvalibleCharacters);
     _currentStep.Init();
     if (_currentStep.GameState != GameState.Default)
     {
         _gameModel.ChangeState(_currentStep.GameState);
     }
 }