add new UI characters
This commit is contained in:
@@ -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)
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user