Implemented end of game screen
This commit is contained in:
parent
ac10c8a2fc
commit
3651adbef8
23 changed files with 20035 additions and 19365 deletions
|
|
@ -1,7 +1,9 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using TMPro;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine.UIElements;
|
||||
using Toggle = UnityEngine.UI.Toggle;
|
||||
|
||||
|
|
@ -10,7 +12,9 @@ public class MonsterRoom : Room
|
|||
[SerializeField] private GameObject numberTextObject;
|
||||
[SerializeField] private GameObject healthTickObject;
|
||||
[SerializeField] private int _health; // Number of times the room needs to be unlocked before becoming explored.
|
||||
|
||||
|
||||
public static event Action MonsterRoomExplored;
|
||||
|
||||
private GameObject[] _healthTicks;
|
||||
protected override void InitializeRoom() {
|
||||
base.InitializeRoom();
|
||||
|
|
@ -53,10 +57,12 @@ public class MonsterRoom : Room
|
|||
if (_health == 0)
|
||||
{
|
||||
_isExplored = true;
|
||||
|
||||
UnhighlightRoomAsOption();
|
||||
TriggerRoomRewards();
|
||||
|
||||
SetExploredGUI();
|
||||
MonsterRoomExplored?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue