Add level selection system. Add levels upto jester
This commit is contained in:
@@ -69,12 +69,24 @@ public class SpeechManager : Singleton<SpeechManager>
|
||||
|
||||
private void NextText()
|
||||
{
|
||||
var item = textBuffer.Dequeue();
|
||||
speaker = item.Value;
|
||||
if (LevelLoader.Instance.GlobalModifier == "HORSE" && speaker == "GUARD")
|
||||
{
|
||||
Debug.LogError("HORSE");
|
||||
mainText.text = item.Key;
|
||||
playerPanel.SetActive(false);
|
||||
otherPanel.SetActive(false);
|
||||
AudioManager.Instance.PlaySound("Horse");
|
||||
return;
|
||||
}
|
||||
|
||||
Status = "TALKING";
|
||||
AudioManager.Instance.PlaySound("Select");
|
||||
var item = textBuffer.Dequeue();
|
||||
|
||||
ccoroutine = StartCoroutine(TypeTextUncapped(item.Key));
|
||||
|
||||
speaker = item.Value;
|
||||
|
||||
|
||||
if (speaker == "PLAYER")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user