projectEli/Assets/NeoFPS/Samples/Shared/Scripts/InfoPopupTrigger.cs

19 lines
492 B
C#
Raw Normal View History

2022-11-07 01:28:33 +00:00
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);
}
}
}