52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
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 bool isReturnedFromTutorial;
|
|
|
|
public ChapterSelectionUnit chapter;
|
|
public SongItemData song;
|
|
public DifficultyData difficulty;
|
|
|
|
public float songLength;
|
|
public float bpm;
|
|
|
|
public Switch chapterSwitch;
|
|
public Switch songSwitch;
|
|
|
|
private void Awake()
|
|
{
|
|
if (instance == null)
|
|
{
|
|
instance = this;
|
|
DontDestroyOnLoad(gameObject);
|
|
isReturnedFromGame = false;
|
|
isReturnedFromTutorial = 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;
|
|
}
|
|
}
|
|
} |