Implemented loot GUI
This commit is contained in:
parent
1e95378bb1
commit
f2f6e8620a
43 changed files with 2135 additions and 20 deletions
|
|
@ -8,9 +8,25 @@ public class RoomRewards : MonoBehaviour
|
|||
public static event Action<int> DamageDealt;
|
||||
|
||||
[SerializeField] public int Diamonds = 0;
|
||||
[SerializeField] private GameObject diamondsGO;
|
||||
[SerializeField] public int Damage = 0;
|
||||
[SerializeField] private GameObject chestGO;
|
||||
[SerializeField] public bool Chest = false;
|
||||
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if (chestGO != null)
|
||||
{
|
||||
chestGO.SetActive(Chest);
|
||||
}
|
||||
|
||||
if (diamondsGO != null)
|
||||
{
|
||||
diamondsGO.SetActive(Diamonds > 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void TriggerGetReward()
|
||||
{
|
||||
if (Diamonds > 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue