22 lines
612 B
C#
22 lines
612 B
C#
using NEG.UI.UnityUi.Buttons.Settings;
|
|
using System;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace NEG.UI.UnityUi.Buttons.Reaction
|
|
{
|
|
public abstract class ButtonElementBehaviour : IDisposable
|
|
{
|
|
protected SettingData baseData;
|
|
protected readonly BaseButton button;
|
|
|
|
public ButtonElementBehaviour(BaseButton baseButton, SettingData settingData)
|
|
{
|
|
button = baseButton;
|
|
baseData = settingData;
|
|
}
|
|
|
|
public virtual void ChangeData(SettingData newData) => baseData = newData;
|
|
|
|
public abstract void Dispose();
|
|
}
|
|
} |