perf
This commit is contained in:
29
Assets/Scripts/Game/UI/GamePauseInterface.cs
Normal file
29
Assets/Scripts/Game/UI/GamePauseInterface.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
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(()=>
|
||||
{
|
||||
FadeOut(0.5f, true, GameManager.instance.audioManager.songPlayer.ResumeSong);
|
||||
});
|
||||
|
||||
restartButton.onClick.AddListener(GameManager.RestartGame);
|
||||
|
||||
returnButton.onClick.AddListener(GameManager.ReturnToMenu);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user