2025-07-21 05:42:20 -04:00
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Ichni.UI;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.SceneManagement;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
|
|
|
|
|
namespace Ichni.RhythmGame.UI
|
|
|
|
|
{
|
|
|
|
|
public class GamePauseInterface : UIPageBase
|
|
|
|
|
{
|
|
|
|
|
public Button resumeButton;
|
|
|
|
|
public Button restartButton;
|
|
|
|
|
public Button returnButton;
|
|
|
|
|
|
|
|
|
|
private void Start()
|
|
|
|
|
{
|
|
|
|
|
resumeButton.onClick.AddListener(()=>
|
|
|
|
|
{
|
2025-07-26 04:20:25 -04:00
|
|
|
FadeOut(0.5f, true, ()=>
|
|
|
|
|
{
|
2026-03-14 03:13:10 -04:00
|
|
|
GameManager.Instance.songPlayer.ResumeSong();
|
|
|
|
|
GameManager.Instance.gameUICanvas.pauseButton.interactable = true;
|
2025-07-26 04:20:25 -04:00
|
|
|
});
|
2025-07-21 05:42:20 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
restartButton.onClick.AddListener(GameManager.RestartGame);
|
|
|
|
|
|
|
|
|
|
returnButton.onClick.AddListener(GameManager.ReturnToMenu);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|