mirror of
https://github.com/ConjureETS/Unity_Utils.git
synced 2026-03-23 20:40:58 +00:00
17 lines
505 B
C#
17 lines
505 B
C#
using UnityEngine;
|
|
using Utilities.Extensions;
|
|
|
|
namespace Canvases.Components
|
|
{
|
|
// ReSharper disable once InconsistentNaming Reason: UI should be capitalized
|
|
public abstract 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);
|
|
}
|
|
} |