58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
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 Awake()
|
|
{
|
|
if (instance == null)
|
|
{
|
|
instance = this;
|
|
DontDestroyOnLoad(gameObject);
|
|
isReturnedFromGame = false;
|
|
}
|
|
else
|
|
{
|
|
Destroy(gameObject);
|
|
}
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |