private void Awake() { _playerState.Distance = 0; _operationsByName.Add(Operations.Move, Move); _playerMovement = GetComponent <PlayerMovement>(); _mapGen = GetComponent <LevelMapGenerator>(); _movingObjGen = GetComponent <MovingObjectsGenerator>(); _movingObjGen.SetPlayerTarget(_playerMovement.transform); TryGenerateNewLevelPart(); }