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

@ -53,6 +53,10 @@ public class MonsterRoom : Room
{
_isExplored = true;
UnhighlightRoomAsOption();
if (roomReward != null)
{
roomReward.TriggerGetReward();
}
gameObject.GetComponent<SpriteRenderer>().color =
ColorHelper.AddColorTint(gameObject.GetComponent<SpriteRenderer>().color, Color.grey, 0.5f);
}