Spawn adventurers when fade is at midpoint

Also adds the character prefabs
This commit is contained in:
2023-07-09 11:42:15 +02:00
parent dbb44e6b6f
commit 3a01324d13
3 changed files with 348 additions and 691 deletions

View File

@@ -60,6 +60,17 @@ public class QuestManager : MonoBehaviour
return true;
}
public void SpawnAdventurers()
{
foreach (var adventurer in Resources.FindObjectsOfTypeAll<AdventurerInteractable>())
{
if (adventurer.m_spawnQuestID == activeQuest)
{
adventurer.gameObject.SetActive(true);
}
}
}
public void NextQuest()
{
activeQuest++;
@@ -68,14 +79,8 @@ public class QuestManager : MonoBehaviour
Debug.Log("All quests completed");
}
foreach (var adventurer in Resources.FindObjectsOfTypeAll<AdventurerInteractable>())
{
if (adventurer.m_spawnQuestID == activeQuest)
{
adventurer.gameObject.SetActive(true);
}
}
GameManager.Instance.FadePingPong();
GameManager.Instance.FadePingPong(SpawnAdventurers);
}
public void RetryQuest()