Scriptum/Assets/Scripts/SettingsButton.cs

23 lines
565 B
C#
Raw Normal View History

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);
}
}
}
}