Scriptum/Assets/Scripts/Domain/DialoguePanel/AbstractPanel.cs

29 lines
622 B
C#
Raw Normal View History

2022-10-16 19:40:44 +02:00
using UnityEngine;
public abstract class AbstractPanel : IPanel
{
// Panel data
public Vector3 Position { get; set; }
public Vector2 Size { get; set; }
public Vector3 Scale { get; set; }
public AbstractPanel() { }
public AbstractPanel(Vector3 _position, Vector2 _size, Vector3 _scale)
{
Position = _position;
Size = _size;
Scale = _scale;
}
/// <summary>
/// Must be overwritten in childern class
/// </summary>
/// <returns></returns>
public virtual GameObject BuildPanel()
{
throw new System.NotImplementedException();
}
}