34 lines
904 B
C#
34 lines
904 B
C#
|
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
|
||
|
}
|