This commit is contained in:
SoulliesOfficial
2026-04-01 12:23:27 -04:00
parent aff7ac0e03
commit c3b1561375
933 changed files with 114333 additions and 119360 deletions

View File

@@ -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);
}
}
}