55 lines
1.1 KiB
C#
55 lines
1.1 KiB
C#
using Code.Scripts.Gameplay.Fight.Evacuate;
|
|
using Framework;
|
|
namespace Gameplay.Unit.Data
|
|
{
|
|
public class UnitUIData
|
|
{
|
|
public GameUnit owner;
|
|
|
|
public int uiIndex
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
public bool isNPC
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 是否显示撤离按钮
|
|
/// </summary>
|
|
public bool showEvacuateBtn
|
|
{
|
|
get
|
|
{
|
|
return standEvacuatePoint != null;
|
|
}
|
|
}
|
|
|
|
private EvacuatePoint _evacuatePoint;
|
|
public EvacuatePoint standEvacuatePoint
|
|
{
|
|
get
|
|
{
|
|
return _evacuatePoint;
|
|
}
|
|
set
|
|
{
|
|
if (_evacuatePoint != value)
|
|
{
|
|
_evacuatePoint = value;
|
|
EventManager.Instance.Send(EventManager.EventName.INFIGHT_EVACUATE_CHANGE, owner);
|
|
}
|
|
}
|
|
}
|
|
|
|
public UnitUIData(GameUnit owner)
|
|
{
|
|
this.owner = owner;
|
|
}
|
|
}
|
|
}
|