mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-28 06:34:49 +00:00
31 lines
559 B
C#
31 lines
559 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ModalLogic : MonoBehaviour
|
|
{
|
|
|
|
[SerializeField]
|
|
public GameObject modalReference;
|
|
[SerializeField]
|
|
public string modal_message;
|
|
[SerializeField]
|
|
public string modal_title;
|
|
|
|
|
|
public void DeactivateModal()
|
|
{
|
|
modalReference.SetActive(false);
|
|
|
|
}
|
|
|
|
|
|
public void SetAndShowModal(string message, string title)
|
|
{
|
|
modal_title = title;
|
|
modal_message = message;
|
|
|
|
modalReference.SetActive(true);
|
|
}
|
|
}
|