add new UI characters
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace Utils
|
||||
|
||||
public string introdialog;
|
||||
public string globalmod;
|
||||
public string introchar;
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
|
||||
Reference in New Issue
Block a user