private void Awake() { if (_gameData == null) { _gameData = GameData.Load(); } if (_dispatcher == null) { _dispatcher = EventsDispatcher.Load(); } if (_gameParameters == null) { _gameParameters = GameParameters.Load(); } }
private void Awake() { _gameController = GetComponent <GameController>(); _dispatcher = EventsDispatcher.Load(); _gameParameters = GameParameters.Load(); }
public Player(PlayerId id, GameParameters gameParameters, IDispatcher dispatcher) { Id = id; Dispatcher = dispatcher; GameParameters = gameParameters; }