Files
EnglewoodLAB/Assets/Scripts/Modal/ContentSelectButton.cs
SOOBEEN HAN f1894889ee <refactor> Octopus Twin 템플릿 적용
- 기능 외 UI 구조만 적용
- 프로젝트에 걸맞는 UI는 재작업 필요
2026-02-23 18:20:09 +09:00

58 lines
1005 B
C#

using System;
using UVC.UI.Commands;
public class ContentSelectButton
{
private string title;
public string Title
{
get => title;
set
{
title = value;
}
}
protected string iconSpritePath;
public string IconSpritePath
{
get => iconSpritePath;
set
{
if (iconSpritePath != value)
{
iconSpritePath = value;
}
}
}
protected string backGroundSpritePath;
public string BackGroundSpritePath
{
get => backGroundSpritePath;
set
{
if (backGroundSpritePath != value)
{
backGroundSpritePath = value;
}
}
}
public ICommand ClickCommand { get; set; }
public Action OnClick;
public void ExCuteClick()
{
if (ClickCommand != null)
{
ClickCommand.Execute();
}
OnClick?.Invoke();
}
}