r2mods/ilspy_dump/ror2_csproj/RoR2.UI.SkinControllers/BaseSkinController.cs

28 lines
353 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using UnityEngine;
namespace RoR2.UI.SkinControllers;
[ExecuteAlways]
public abstract class BaseSkinController : MonoBehaviour
{
public UISkinData skinData;
protected abstract void OnSkinUI();
protected void Awake()
{
if ((bool)skinData)
{
DoSkinUI();
}
}
private void DoSkinUI()
{
if ((bool)skinData)
{
OnSkinUI();
}
}
}