Compare commits
3 Commits
gfx
...
journal_ui
| Author | SHA1 | Date | |
|---|---|---|---|
| 4cc6d4fc39 | |||
| a00e4a6e98 | |||
| 6bbadefa3e |
File diff suppressed because it is too large
Load Diff
@@ -95,7 +95,9 @@ public class Journal : MonoBehaviour
|
|||||||
bool success = QuestManager.Instance.RunQuestWithAdventurer(m_availableAdventurers[m_selectedAdventurer], activeQuest);
|
bool success = QuestManager.Instance.RunQuestWithAdventurer(m_availableAdventurers[m_selectedAdventurer], activeQuest);
|
||||||
Debug.Log("THE QUESTR ESULT WAS: " + success);
|
Debug.Log("THE QUESTR ESULT WAS: " + success);
|
||||||
adventurerPage.gameObject.SetActive(false);
|
adventurerPage.gameObject.SetActive(false);
|
||||||
if(success)
|
|
||||||
|
questPage.Find("QuestResult").gameObject.SetActive(true);
|
||||||
|
if (success)
|
||||||
{
|
{
|
||||||
questPage.Find("QuestResult/NextQuest").gameObject.SetActive(true);
|
questPage.Find("QuestResult/NextQuest").gameObject.SetActive(true);
|
||||||
questPage.Find("QuestResult/RetryQuest").gameObject.SetActive(false);
|
questPage.Find("QuestResult/RetryQuest").gameObject.SetActive(false);
|
||||||
@@ -106,7 +108,7 @@ public class Journal : MonoBehaviour
|
|||||||
}
|
}
|
||||||
|
|
||||||
questPage.Find("QuestResult/QuestResultText").gameObject.GetComponent<TMP_Text>().text = success ? activeQuest.successStr : activeQuest.failedStr;
|
questPage.Find("QuestResult/QuestResultText").gameObject.GetComponent<TMP_Text>().text = success ? activeQuest.successStr : activeQuest.failedStr;
|
||||||
questPage.Find("QuestResult").gameObject.SetActive(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void StartNextQuest()
|
public void StartNextQuest()
|
||||||
|
|||||||
Reference in New Issue
Block a user