PO/Assets/Scripts/WarningTableClose.cs

16 lines
301 B
C#
Raw Permalink Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WarningTableClose : MonoBehaviour
{
public void OnClick()
{
DataHolder.main.warning = false;
}
public void Start()
{
gameObject.SetActive(DataHolder.main.warning);
}
}