39 lines
1009 B
C#
39 lines
1009 B
C#
|
|
using System;
|
||
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Sirenix.OdinInspector;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace Ichni.Menu
|
||
|
|
{
|
||
|
|
public class MenuInformationRecorder : SerializedMonoBehaviour
|
||
|
|
{
|
||
|
|
public static MenuInformationRecorder instance;
|
||
|
|
public Dictionary<ChapterSelectionUnit, SongSelectionRecord> songSelectionRecords;
|
||
|
|
|
||
|
|
private void Awake()
|
||
|
|
{
|
||
|
|
if (instance == null)
|
||
|
|
{
|
||
|
|
instance = this;
|
||
|
|
songSelectionRecords = new Dictionary<ChapterSelectionUnit, SongSelectionRecord>();
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
Destroy(gameObject);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public struct SongSelectionRecord
|
||
|
|
{
|
||
|
|
public SongItemData song;
|
||
|
|
public DifficultyData difficulty;
|
||
|
|
|
||
|
|
public SongSelectionRecord(SongItemData song, DifficultyData difficulty)
|
||
|
|
{
|
||
|
|
this.song = song;
|
||
|
|
this.difficulty = difficulty;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|