mirror of
https://github.com/ConjureETS/Unity_Utils.git
synced 2026-03-24 04:50:58 +00:00
28 lines
494 B
C#
28 lines
494 B
C#
using UnityEngine;
|
|
|
|
namespace UI
|
|
{
|
|
public class UIComponentBase : MonoBehaviour
|
|
{
|
|
|
|
public void Show()
|
|
{
|
|
gameObject.Show();
|
|
}
|
|
|
|
public void Hide()
|
|
{
|
|
gameObject.Hide();
|
|
}
|
|
|
|
public void ToggleDisplay()
|
|
{
|
|
gameObject.SetActive(!gameObject.activeInHierarchy);
|
|
}
|
|
|
|
public void SetActive(bool active)
|
|
{
|
|
gameObject.SetActive(active);
|
|
}
|
|
}
|
|
} |