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
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue