lol
This commit is contained in:
parent
4058bd48ca
commit
58b2ef36b5
|
|
@ -61,12 +61,13 @@ namespace HeavenStudio
|
||||||
|
|
||||||
private bool logoRevealed;
|
private bool logoRevealed;
|
||||||
|
|
||||||
private bool menuMode, snsRevealed;
|
private bool menuMode, snsRevealed, exiting;
|
||||||
|
|
||||||
private Animator menuAnim;
|
private Animator menuAnim;
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
exiting = false;
|
||||||
menuAnim = GetComponent<Animator>();
|
menuAnim = GetComponent<Animator>();
|
||||||
musicSource = GetComponent<AudioSource>();
|
musicSource = GetComponent<AudioSource>();
|
||||||
musicSource.PlayScheduled(AudioSettings.dspTime);
|
musicSource.PlayScheduled(AudioSettings.dspTime);
|
||||||
|
|
@ -179,6 +180,8 @@ namespace HeavenStudio
|
||||||
|
|
||||||
public void CreatePressed()
|
public void CreatePressed()
|
||||||
{
|
{
|
||||||
|
if (exiting) return;
|
||||||
|
exiting = true;
|
||||||
GlobalGameManager.PlayOpenFile = null;
|
GlobalGameManager.PlayOpenFile = null;
|
||||||
GlobalGameManager.LoadScene("Editor");
|
GlobalGameManager.LoadScene("Editor");
|
||||||
SoundByte.PlayOneShot("ui/UIEnter");
|
SoundByte.PlayOneShot("ui/UIEnter");
|
||||||
|
|
@ -234,6 +237,8 @@ namespace HeavenStudio
|
||||||
|
|
||||||
public void PlayPanelAccept()
|
public void PlayPanelAccept()
|
||||||
{
|
{
|
||||||
|
if (exiting) return;
|
||||||
|
exiting = true;
|
||||||
SoundByte.PlayOneShot("ui/UIEnter");
|
SoundByte.PlayOneShot("ui/UIEnter");
|
||||||
GlobalGameManager.LoadScene("Game", 0.35f, -1);
|
GlobalGameManager.LoadScene("Game", 0.35f, -1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue