29 lines
622 B
C#
29 lines
622 B
C#
|
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();
|
||
|
}
|
||
|
}
|
||
|
|