Write on screen during story
This commit is contained in:
parent
ba0252298c
commit
49c4fc63f0
4 changed files with 296 additions and 5 deletions
|
|
@ -1,16 +1,19 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class StoryController : MonoBehaviour
|
||||
{
|
||||
public Text storyText;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
// TODO: Read which scene should be loaded.
|
||||
StoryScene scene = StorySceneDatabase.Load(SceneId.Chapter1_Cave);
|
||||
|
||||
StartCoroutine(scene.Play());
|
||||
StartCoroutine(scene.Play(this));
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue