Implemented How To Play Pop up on start

This commit is contained in:
Max 2025-03-06 12:12:13 +01:00
parent 5fd3e5bc73
commit c103ffb339
20 changed files with 558 additions and 24 deletions

View file

@ -8,5 +8,7 @@ namespace DungeonSelection
public static Action NextDungeonClicked;
public static Action PreviousDungeonClicked;
public static Action<DungeonData> EnterDungeonClicked;
public static Action CloseRules;
public static Action ShowRules;
}
}

View file

@ -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);
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 9ccfd39425234a2a9c67229f57a62b10
timeCreated: 1741259289