StartMenu!
This commit is contained in:
30
Assets/Scripts/StartMenu/InformationTransistor.cs
Normal file
30
Assets/Scripts/StartMenu/InformationTransistor.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame.Beatmap;
|
||||
using Sirenix.OdinInspector;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni
|
||||
{
|
||||
public class InformationTransistor : SerializedMonoBehaviour
|
||||
{
|
||||
public static InformationTransistor instance;
|
||||
|
||||
public bool isLoadedProject;
|
||||
public ProjectInformation_BM projectInfo_BM;
|
||||
public SongInformation_BM songInfo_BM;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (instance == null)
|
||||
{
|
||||
instance = this;
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
else if (instance != this)
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user