Branch + textbox pages

This commit is contained in:
Rizvee committed 2022-02-20 23:24:26 -06:00
1 parent f4560018ca
commit d53725e3f0
3 files changed
+277 -419

No files matched your search

+11 -1
View File
@@ -1,15 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class Dialogue : MonoBehaviour
{
public TMP_Text textbox;
ArrayList<string> pages;
int curPage;
// Start is called before the first frame update
void Start()
{
//pages to scroll through
pages = new ArrayList<string>();
}
//Adds a page of text
void AddText(string text)
{
pages.Add(text);
}
// Update is called once per frame
void Update()
{