protected override void Awake() { base.Awake(); inputActions.CubeControl.Rotation.performed += OnRotationPerformed; _cubeRotator = GetComponent <CubeRotator>(); _cubeCameraMover = GetComponent <CubeCameraMover>(); _highlighter = GetComponent <CubeHighlighter>(); _cubeSoundPlayer = GetComponent <CubeSoundPlayer>(); _cubeLevelOpener = GetComponent <CubeLevelOpener>(); }
private void Awake() { _levelConfigurationHolder = GetComponent <CubeLevelConfigurationHolder>(); _levelOpener = GetComponent <CubeLevelOpener>(); _cameraMover = GetComponent <CubeCameraMover>(); _highlighter = GetComponent <CubeHighlighter>(); _soundPlayer = GetComponent <CubeSoundPlayer>(); _locker = GetComponent <CubeLocker>(); _rotator = GetComponent <CubeRotator>(); _rotationRestorer = GetComponent <CubeRotationRestorer>(); Finder.FindMandatory <SceneSwitcher>().SceneOpened += OnSceneOpened; }