Implemented chest pop up and gaining ability upon completing a room with a chest reward.

This commit is contained in:
Max 2025-01-30 16:07:07 +01:00
parent 90b9e2689a
commit fdeab50984
15 changed files with 1185 additions and 997 deletions

View file

@ -0,0 +1,17 @@
using System;
using UnityEngine;
public class UIManager : MonoBehaviour
{
[SerializeField] private GameObject canvas;
[SerializeField] private GameObject chestRewardSelectionUI;
private void OnEnable()
{
RoomReward.ChestRewarded += HandleChestRewarded;
}
private void HandleChestRewarded()
{
Instantiate(chestRewardSelectionUI, canvas.transform);
}
}