Create text box in story

This commit is contained in:
henriquenakashima 2020-09-27 22:00:23 -04:00
parent 1e87d1d35f
commit 8eecb71a38
83 changed files with 16544 additions and 25 deletions

View file

@ -4,10 +4,9 @@ using UnityEngine;
public class Scene_Chapter1_Cave: StoryScene
{
public override IEnumerator Play(StoryController storyController) {
Debug.Log("OMG monsters!");
storyController.storyText.text = "OMG monsters!";
yield return new WaitForSeconds(2f);
public override IEnumerator Play(StoryDisplay storyDisplay) {
yield return storyDisplay.DisplayText("OMG monsters!");
yield return new WaitForSeconds(1f);
BattleParameters battleParameters = BuildBattleGolemBats();
BattleSetup.StartBattle(battleParameters);