Implemented How To Play Pop up on start
This commit is contained in:
parent
5fd3e5bc73
commit
c103ffb339
20 changed files with 558 additions and 24 deletions
|
|
@ -0,0 +1,26 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue