mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
Branch + textbox pages
This commit is contained in:
1 parent
f4560018ca
commit
d53725e3f0
3 files changed
+277
-419
No files matched your search
@@ -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()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user