using System; using System.Collections; using System.Collections.Generic; using UnityEngine; [Serializable] public class DialogueModel // where TPanel : AbstractPanel { public Func Panel = PanelFactory.BasePanel; [SerializeField] public string Sentence; // { get; set; } // make set private but this will block inspector [SerializeField] public List Buttons = new List(); public DialogueModel() { } public DialogueModel(string _sentence) { Sentence = _sentence; } public DialogueModel(string _sentence, List _buttonsModelsList) { Sentence = _sentence; Buttons = _buttonsModelsList; } }