public async void LoadScene()
        {
            IDifficultyBeatmap        diffBeatmap = BS_Utils.Plugin.LevelData.GameplayCoreSceneSetupData.difficultyBeatmap;
            CustomPreviewBeatmapLevel customPreviewBeatmapLevel = diffBeatmap.level as CustomPreviewBeatmapLevel;

            if (customPreviewBeatmapLevel != null)
            {
                string customLevelPath = customPreviewBeatmapLevel.customLevelPath;
                string mapFileName     = diffBeatmap.difficulty.Name();
                string filepath        = customLevelPath + "\\ExpertPlusEffect.dat";
                Logger.log.Error("custom level path = " + filepath);
                Logger.log.Error("custom level difficulty = " + mapFileName);


                player = new CutEffectPlayer();
                player.Init(gameObject);
                if (await player.TryLoadCutEffectMap(filepath))
                {
                    return;
                }
            }

            player = null;
            //string cutEffectMapPath = "D:\\ProgramFiles\\Steam\\steamapps\\common\\Beat Saber\\Beat Saber_Data\\CustomLevels\\2a7 (Night of Nights - squeaksies)\\ExpertPlusEffect.dat";
        }
示例#2
0
    public void Init(int tap_num, CutEffectPlayer manager)
    {
        cutEffectManager = manager;

        sliders = new RevolvingBoxSlider[tap_num];

        InitSlider();
    }
示例#3
0
    private void AdjustTapKey(AudioClip audioClip, CutEffectPlayer cutEffect)
    {
        float pitch = KeyFinder.AdjustPitch(audioClip, 21); //KeyFinder側に定数マクロを持つべきだが...

        cutEffect.SetPitch(pitch);
    }