Scriptum/Assets/Scripts/SettingsButton.cs
2022-05-20 13:38:43 +02:00

23 lines
565 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace GUI_Scripts
{
public class SettingsButton:MonoBehaviour
{
public GameObject Panel;
public void OpenPanel() {
if (Panel != null) {
//bool isActive = Panel.activeSelf;
Panel.SetActive(true);
}
}
public void ClosePanel() {
if (Panel != null) {
Panel.SetActive(false);
}
}
}
}