Exemplo n.º 1
0
        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>();
        }
Exemplo n.º 2
0
        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;
        }