更新
This commit is contained in:
@@ -26,6 +26,17 @@ namespace Continentis.MainGame.UI
|
||||
{
|
||||
foreach (var pointerArrow in pointerArrows) LeanPool.Despawn(pointerArrow.gameObject);
|
||||
pointerArrows.Clear();
|
||||
mainPointerArrow = null;
|
||||
}
|
||||
|
||||
/// <summary>移除并回收最后一支箭头(用于多目标选择的撤销操作)。</summary>
|
||||
public void RemoveLastPointerArrow()
|
||||
{
|
||||
if (pointerArrows.Count == 0) return;
|
||||
PointerArrow last = pointerArrows[^1];
|
||||
pointerArrows.RemoveAt(pointerArrows.Count - 1);
|
||||
if (last == mainPointerArrow) mainPointerArrow = null;
|
||||
LeanPool.Despawn(last.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user