Implemented end of game screen
This commit is contained in:
parent
ac10c8a2fc
commit
3651adbef8
23 changed files with 20035 additions and 19365 deletions
|
|
@ -12,6 +12,7 @@ namespace UI
|
|||
[SerializeField] private GameObject canvas;
|
||||
[FormerlySerializedAs("hud")] [SerializeField] private InGameHUDController hudController;
|
||||
[SerializeField] private GameObject chestPopUpControllerGO;
|
||||
[SerializeField] private GameObject endOfGamePupUpGO;
|
||||
[SerializeField] private ChestPopUpController chestPopUpController;
|
||||
[SerializeField] private GameObject diceGO;
|
||||
[SerializeField] private DiceRoller diceRoller;
|
||||
|
|
@ -45,6 +46,8 @@ namespace UI
|
|||
|
||||
RoomRewards.ChestRewarded += HandleChestRewarded;
|
||||
|
||||
GameManager.EndOfGame += HandleEndOfGame;
|
||||
|
||||
chestPopUpController.BlackDieSelected += chestRewardSelection.HandleBlackDiceSelected;
|
||||
chestPopUpController.KeySelected += chestRewardSelection.HandleTorchSelected;
|
||||
chestPopUpController.ArmorAndDiamondSelected += chestRewardSelection.HandleDiamondAndLifeSelected;
|
||||
|
|
@ -136,5 +139,11 @@ namespace UI
|
|||
{
|
||||
chestPopUpControllerGO.SetActive(true);
|
||||
}
|
||||
|
||||
private void HandleEndOfGame(object sender, EndOfGameEventArgs args)
|
||||
{
|
||||
endOfGamePupUpGO.SetActive(true);
|
||||
endOfGamePupUpGO.GetComponent<EndGameController>().PopulateEndOfGamePopUp(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue