using System.Collections; using System.Collections.Generic; using AK.Wwise; using UnityEngine; namespace Ichni { public class InformationTransistor : MonoBehaviour { public static InformationTransistor instance; public bool isReturnedFromGame; public string chapterName; public string songName; public string composerName; public string illustratorName; public string chartDesignerName; public string difficultyName; public Color difficultyColor; public Sprite illustration; public Switch chapterSwitch; public Switch musicSwitch; private void Start() { if (instance!=null && instance != this) { Destroy(gameObject); } else { instance = this; DontDestroyOnLoad(gameObject); isReturnedFromGame = false; } } public void SetInformation(string chapterName, string songName, string composerName, string difficultyName, string illustratorName, string chartDesignerName, Color difficultyColor, Sprite illustration, Switch chapter, Switch music) { this.chapterName = chapterName; this.songName = songName; this.composerName = composerName; this.difficultyName = difficultyName; this.difficultyColor = difficultyColor; this.illustration = illustration; this.illustratorName = illustratorName; this.chartDesignerName = chartDesignerName; this.chapterSwitch = chapter; this.musicSwitch = music; } } }