コード例 #1
0
ファイル: CubeInput.cs プロジェクト: bshanae/in-the-shadows
        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>();
        }
コード例 #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;
        }