24 lines
517 B
C#
24 lines
517 B
C#
using TMPro;
|
|
using UnityEngine;
|
|
|
|
public class SettingView : MonoBehaviour
|
|
{
|
|
[Header("Layout ссылки")]
|
|
[SerializeField] private TextMeshProUGUI SettingNameLabel;
|
|
|
|
|
|
|
|
BaseSettingView view;
|
|
|
|
public void Generate(SettingDTO setting)
|
|
{
|
|
this.name = "(setting) " + setting.Alias;
|
|
SettingNameLabel.text = setting.Alias;
|
|
|
|
var view = Instantiate(SettingViewsProvider.GetViewBySetting(setting), transform);
|
|
view.Initialize(setting);
|
|
this.view = view;
|
|
}
|
|
|
|
|
|
} |