コード例 #1
0
        public void Init(VRController vrController, SaberTrickManager saberTrickManager)
        {
            Controller        = vrController;
            SaberTrickManager = saberTrickManager;

            enabled = true;
        }
コード例 #2
0
        private GlobalTrickManager(
            SiraLog logger,
            PluginConfig config,
            AudioTimeSyncController audioTimeSyncController,
            GameplayCoreSceneSetupData gameplayCoreSceneSetup,
            [Inject(Id = SaberType.SaberA)] SaberTrickManager leftTrickManager,
            [Inject(Id = SaberType.SaberB)] SaberTrickManager rightTrickManager,
            [InjectOptional] MultiplayerPlayersManager multiplayerPlayersManager)
        {
            _logger = logger;
            _config = config;
            _audioTimeSyncController = audioTimeSyncController;

            _iDifficultyBeatmap = gameplayCoreSceneSetup.difficultyBeatmap;

            _slowmoStepAmount = _config.SlowmoStepAmount;

            LeftSaberTrickManager  = leftTrickManager;
            RightSaberTrickManager = rightTrickManager;

            _isMultiplayer = multiplayerPlayersManager != null;
        }