add new UI characters

This commit is contained in:
WillJeynes
2026-08-29 21:20:04 +01:00
parent b81a06362b
commit 8a591a557f
10 changed files with 526 additions and 3 deletions
+12 -1
View File
@@ -286,11 +286,22 @@ public class DialogManager : Singleton<DialogManager>
{
responsePrefix = "They would answer: ";
}
var responder = "GUARD";
if (LevelLoader.Instance.GlobalModifier == "HORSE")
{
responder = "HORSE";
}
if (currentGuard.mod == "JOKER")
{
responder = "JOKER";
}
SpeechManager.Instance.StartText(new[]
{
new KeyValuePair<string, string>(r, "PLAYER"),
new KeyValuePair<string, string>(responsePrefix + response, "GUARD")
new KeyValuePair<string, string>(responsePrefix + response, responder)
});
reset();
+9 -2
View File
@@ -25,6 +25,7 @@ public class LevelLoader : Singleton<LevelLoader>
public string GlobalModifier { private set; get; }
private string introdia;
private string introchar;
void Start()
{
@@ -132,7 +133,7 @@ public class LevelLoader : Singleton<LevelLoader>
TutorialManager.Instance.ShowFirst();
introdia = data.introdialog;
introchar = data.introchar;
StartCoroutine(DoSomethingAfterOneSecond());
}
@@ -140,11 +141,17 @@ public class LevelLoader : Singleton<LevelLoader>
{
yield return new WaitForSeconds(0.1f);
var responder = "GUARD";
if (introchar != null)
{
responder = introchar;
}
if (introdia != null)
{
SpeechManager.Instance.StartText(new[]
{
new KeyValuePair<string, string>(introdia, "GUARD")
new KeyValuePair<string, string>(introdia, responder)
});
}
+19
View File
@@ -118,6 +118,25 @@ public class SpeechManager : Singleton<SpeechManager>
{
playerPanel.SetActive(false);
otherPanel.SetActive(true);
otherPanel.transform.GetChild(0).gameObject.SetActive(true);
otherPanel.transform.GetChild(1).gameObject.SetActive(false);
otherPanel.transform.GetChild(2).gameObject.SetActive(false);
}
else if (speaker == "HORSE")
{
playerPanel.SetActive(false);
otherPanel.SetActive(true);
otherPanel.transform.GetChild(0).gameObject.SetActive(false);
otherPanel.transform.GetChild(1).gameObject.SetActive(true);
otherPanel.transform.GetChild(2).gameObject.SetActive(false);
}
else if (speaker == "JOKER")
{
playerPanel.SetActive(false);
otherPanel.SetActive(true);
otherPanel.transform.GetChild(0).gameObject.SetActive(false);
otherPanel.transform.GetChild(1).gameObject.SetActive(false);
otherPanel.transform.GetChild(2).gameObject.SetActive(true);
}
else
{
+1
View File
@@ -12,6 +12,7 @@ namespace Utils
public string introdialog;
public string globalmod;
public string introchar;
}
[System.Serializable]