26 lines
No EOL
469 B
C#
26 lines
No EOL
469 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace DungeonSelection
|
|
{
|
|
public class UIManager : MonoBehaviour
|
|
{
|
|
[SerializeField] private GameObject rulesPageGO;
|
|
|
|
private void OnEnable()
|
|
{
|
|
UIEvents.ShowRules += ShowRules;
|
|
}
|
|
|
|
private void OnDisable()
|
|
{
|
|
UIEvents.ShowRules -= ShowRules;
|
|
|
|
}
|
|
|
|
private void ShowRules()
|
|
{
|
|
rulesPageGO.SetActive(true);
|
|
}
|
|
}
|
|
} |