BORKED, SO BORKED

This commit is contained in:
WillJeynes
2026-08-29 21:04:50 +01:00
parent fb26f0907d
commit b81a06362b
3 changed files with 4754 additions and 464 deletions
+18 -4
View File
@@ -1,3 +1,4 @@
using System.Collections;
using UnityEngine;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
@@ -22,6 +23,8 @@ public class LevelLoader : Singleton<LevelLoader>
public JObject SpeechTree { private set; get; }
public string GlobalModifier { private set; get; }
private string introdia;
void Start()
{
@@ -124,16 +127,27 @@ public class LevelLoader : Singleton<LevelLoader>
StatusManager.Instance.PopulatePanels();
if (data.introdialog != null)
TutorialManager.Instance.ShowFirst();
introdia = data.introdialog;
StartCoroutine(DoSomethingAfterOneSecond());
}
IEnumerator DoSomethingAfterOneSecond()
{
yield return new WaitForSeconds(0.1f);
if (introdia != null)
{
SpeechManager.Instance.StartText(new[]
{
new KeyValuePair<string, string>(data.introdialog, "GUARD")
new KeyValuePair<string, string>(introdia, "GUARD")
});
}
TutorialManager.Instance.ShowFirst();
}