Update du système de quêtes. Refactorisation et redefinission des états d'une quête.
This commit is contained in:
parent
2370cb670d
commit
3dbddc57ae
7 changed files with 94 additions and 19 deletions
|
|
@ -97,8 +97,17 @@ namespace GameUI.Runtime
|
|||
switch (state)
|
||||
{
|
||||
case QuestStateEnum.Disponible:
|
||||
// Before acceptance: can see info but shouldn't assign adventurers yet
|
||||
_buttonActivation.SetActive(false);
|
||||
_adventurersOnThisQuestPanel.SetActive(false);
|
||||
_adventurersSelection.SetActive(false);
|
||||
_panelRecap.SetActive(false);
|
||||
break;
|
||||
case QuestStateEnum.Accepted:
|
||||
// After acceptance: allow selecting adventurers and launching the quest
|
||||
_buttonActivation.SetActive(true);
|
||||
_adventurersOnThisQuestPanel.SetActive(false);
|
||||
_adventurersSelection.SetActive(true);
|
||||
_panelRecap.SetActive(false);
|
||||
break;
|
||||
case QuestStateEnum.Completed:
|
||||
|
|
@ -108,7 +117,7 @@ namespace GameUI.Runtime
|
|||
_panelRecap.SetActive(true);
|
||||
_panelRecap.GetComponent<QuestLogsListUI>().ShowFor(QuestManager.Instance.CurrentQuest.ID);
|
||||
break;
|
||||
case QuestStateEnum.Active:
|
||||
case QuestStateEnum.InProgress:
|
||||
Info("La quête est active.");
|
||||
_buttonActivation.SetActive(false);
|
||||
_adventurersOnThisQuestPanel.SetActive(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue