private void ReloadGame() { _saveRepository.Load(ref _gameModel); _interactiveStorage.Initialization(_gameModel); Debug.Log("Game is reloaded. "); }
public void Execute() { _playerBase.Move(Input.GetAxis("Horizontal"), 0.0f, Input.GetAxis("Vertical")); if (Input.GetKeyDown(_savePlayer)) { _saveDataRepository.Save(_playerBase); } if (Input.GetKeyDown(_loadPlayer)) { _saveDataRepository.Load(_playerBase); } }
public void Execute() { _playerBase.Move(Input.GetAxis(AxisManager.HORIZONTAL), 0.0f, Input.GetAxis(AxisManager.VERTICAL)); if (Input.GetKeyDown(_savePlayer)) { _saveDataRepository.Save(_playerBase); } if (Input.GetKeyDown(_saveAll)) { _saveDataRepository.Save(_saveController.ListObjects); } if (Input.GetKeyDown(_loadAll)) { _saveDataRepository.Load(_saveController.ListObjects); } if (Input.GetKeyDown(_loadPlayer)) { _saveDataRepository.Load(_playerBase); } }