Create text box in story
This commit is contained in:
parent
1e87d1d35f
commit
8eecb71a38
83 changed files with 16544 additions and 25 deletions
25
Assets/Story/StoryDisplay.cs
Normal file
25
Assets/Story/StoryDisplay.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class StoryDisplay : MonoBehaviour
|
||||
{
|
||||
public StoryBox storyBox;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public IEnumerator DisplayText(string message) {
|
||||
yield return this.storyBox.Display(message);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue