Write on screen during story

This commit is contained in:
henriquenakashima 2020-09-26 23:43:29 -04:00
parent ba0252298c
commit 49c4fc63f0
4 changed files with 296 additions and 5 deletions

View file

@ -4,8 +4,9 @@ using UnityEngine;
public class Scene_Chapter1_Cave: StoryScene
{
public override IEnumerator Play() {
public override IEnumerator Play(StoryController storyController) {
Debug.Log("OMG monsters!");
storyController.storyText.text = "OMG monsters!";
yield return new WaitForSeconds(2f);
BattleParameters battleParameters = BuildBattleGolemBats();
@ -15,7 +16,7 @@ public class Scene_Chapter1_Cave: StoryScene
private BattleParameters BuildBattleGolemBats() {
BattleParameters battleParameters = new BattleParameters();
PartyManager.SetupBattleParameters(battleParameters);
MonsterId[] monsterIds = new MonsterId[3] {
MonsterId.Golem,
MonsterId.Bat,