projectEli/Assets/NeoFPS/Samples/Shared/Scripts/InfoPopupTrigger.cs
2022-11-06 20:28:33 -05:00

19 lines
492 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace NeoFPS.Samples.SinglePlayer
{
[HelpURL("https://docs.neofps.com/manual/samplesref-mb-infopopuptrigger.html")]
public class InfoPopupTrigger : MonoBehaviour
{
[SerializeField, Multiline, Tooltip("The info to display in the popup when triggeres.")]
private string m_Info = "Enter text here";
public void Show ()
{
InfoPopup.ShowPopup (m_Info, null);
}
}
}