33 lines
756 B
C#
33 lines
756 B
C#
|
|
namespace Gameplay.Common
|
||
|
|
{
|
||
|
|
public class UnitControlData
|
||
|
|
{
|
||
|
|
public GameUnit owner;
|
||
|
|
public GameUnit followUnit;
|
||
|
|
public GameUnit targetEnemy;
|
||
|
|
|
||
|
|
// 标志和透传相关信息
|
||
|
|
private int _targetCellIndex = -1;
|
||
|
|
public int targetCellIndex
|
||
|
|
{
|
||
|
|
get
|
||
|
|
{
|
||
|
|
return _targetCellIndex;
|
||
|
|
}
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_targetCellIndex != value)
|
||
|
|
{
|
||
|
|
owner.Log("设置targetCellIndex:" + value);
|
||
|
|
_targetCellIndex = value;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public UnitControlData(GameUnit owner)
|
||
|
|
{
|
||
|
|
this.owner = owner;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|