using System.Collections; using System.Collections.Generic; using AK.Wwise; using Ichni.Menu; using UnityEngine; using UnityEngine.Serialization; namespace Ichni { public class InformationTransistor : MonoBehaviour { public static InformationTransistor instance; public bool isReturnedFromGame; public ChapterSelectionUnit chapter; public SongItemData song; public DifficultyData difficulty; public Switch chapterSwitch; public Switch songSwitch; private void Awake() { if (instance == null) { instance = this; DontDestroyOnLoad(gameObject); isReturnedFromGame = false; } else { Destroy(gameObject); } } public void SetInformation(ChapterSelectionUnit chapter, SongItemData song, DifficultyData difficulty) { this.chapter = chapter; this.song = song; this.difficulty = difficulty; this.chapterSwitch = chapter.chapterSwitch; this.songSwitch = song.songSwitch; } } }