コード例 #1
0
ファイル: BeatmapEditor.cs プロジェクト: Esurielt/Nijito
        public void Initialize(string songName, BeatmapDifficulty difficulty, SongData.Beatmap beatmap)
        {
            InitializeFirst(songName);

            BeatmapWriter = new BeatmapWriter(beatmap);

            Difficulty          = difficulty;
            DifficultyText.text = difficulty.Name;

            BeatmapTypeText.text = beatmap.TypeInstance.Name;

            InitializeLast();
        }
コード例 #2
0
ファイル: Game.cs プロジェクト: Esurielt/Nijito
    private static void OnBeatmapEditorLoaded(string songName, BeatmapDifficulty difficulty, SongData.Beatmap fromBeatmap = null)
    {
        var editor = FindObjectOfType <Editors.BeatmapEditor.BeatmapEditor>();

        if (editor != null)
        {
            editor.Initialize(songName, difficulty, fromBeatmap);
        }
        else
        {
            Log(Logging.Category.SONG_DATA, "Unable to locate beatmap editor component in scene.", Logging.Level.LOG_ERROR);
        }
    }
コード例 #3
0
ファイル: Game.cs プロジェクト: Esurielt/Nijito
 public static void OpenBeatmapEditor(string songName, BeatmapDifficulty difficulty, SongData.Beatmap fromBeatmap = null)
 {
     LoadScene(SceneNames.PIANO_ROLL_EDITOR, () => OnBeatmapEditorLoaded(songName, difficulty, fromBeatmap));
 }