Implemented chest pop up and gaining ability upon completing a room with a chest reward.
This commit is contained in:
parent
90b9e2689a
commit
fdeab50984
15 changed files with 1185 additions and 997 deletions
17
PuzzleGameProject/Assets/Scripts/UIManager.cs
Normal file
17
PuzzleGameProject/Assets/Scripts/UIManager.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue