23 lines
565 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
} |