Files
FebGameJam/Assets/Scene 1 Assets/TextTrigger.cs
T
2022-02-23 02:16:40 -06:00

14 lines
307 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TextTrigger : Trigger
{
public Dialogue TextBox;
public override void Action()
{
TextBox.gameObject.SetActive(true);
TextBox.GetComponent<Dialogue>().isOpen = true;
}
}