Files
ichni_Official/Assets/Scripts/Menu/InformationTransistor.cs
SoulliesOfficial b19469976a Menu基本完成
2025-06-14 14:42:49 -04:00

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;
}
}
}