Scriptum/Assets/Scripts/REFACTORING/Application/Dialogue/Panel/Model/ButtonPanelModel.cs

34 lines
904 B
C#
Raw Normal View History

2022-10-16 19:40:44 +02:00
using UnityEngine;
using UnityEngine.Events;
public class ButtonPanelModel : AbstractPanel
{
public PanelButtonEnum Type { get; set; }
public string Response { get; set; }
public UnityEvent ButtonActions;
public ButtonPanelModel(PanelButtonEnum _type)
{
Type = _type;
}
public ButtonPanelModel(Vector3 _position, Vector2 _size, Vector3 _scale) : base (_position, _size, _scale){ }
public ButtonPanelModel(PanelButtonEnum _type, Vector3 _position, Vector2 _size, Vector3 _scale) : base(_position, _size, _scale)
{
Type = _type;
}
public ButtonPanelModel(Vector3 _position, Vector2 _size, Vector3 _scale, PanelButtonStepModel _buttonData) : base (_position, _size, _scale)
{
Type = _buttonData.Type;
Response = _buttonData.ButtonName;
ButtonActions = _buttonData.ButtonActions;
}
// TODO build
}