/** 移动到 */ public void moveTo(Unit unit, int moveType, float radius, Action func) { clearCurrentCommand(); _commandType = UnitAICommandType.MoveToUnit; _commandUnit.setUnit(unit); _commandDistance = radius; _commandOver = func; _commandMoveType = moveType; runCommand(); }
public static UnitReference create(Unit unit) { UnitReference re = new UnitReference(); re.setUnit(unit); return(re); }
/** 设置攻击目标 */ private void setPursueUnit(Unit target) { _pursueUnit.setUnit(target); }
/** 设置锚点单位 */ public void setAnchorUnit(Unit unit, float radius) { _anchorRadius = radius; _isAnchorUseUnit = true; _anchorUnit.setUnit(unit); }