23 lines
520 B
C#
23 lines
520 B
C#
using System;
|
|
using Sirenix.OdinInspector;
|
|
using UnityEngine;
|
|
|
|
namespace SLSFramework.UI
|
|
{
|
|
public class UIElementBase : SerializedMonoBehaviour
|
|
{
|
|
public RectTransform rectTransform;
|
|
public CanvasGroup canvasGroup;
|
|
|
|
private void Reset()
|
|
{
|
|
rectTransform = GetComponent<RectTransform>();
|
|
canvasGroup = GetComponent<CanvasGroup>();
|
|
}
|
|
|
|
public virtual void UpdateUI()
|
|
{
|
|
// Override in derived classes
|
|
}
|
|
}
|
|
} |