修复灵灯bug

This commit is contained in:
2026-07-05 23:05:36 +08:00
parent c06a8abad0
commit 4580a10668
5 changed files with 10 additions and 59 deletions
+3 -2
View File
@@ -121,12 +121,13 @@ namespace IndianOceanAssets.Engine2_5D
if (_recalled) return;
_recalled = true;
// 1. 立即取消事件订阅 + 通知系统(回收灵灯名额)
// 1. 先触发回收事件(通知系统返还名额),再取消订阅
OnLanternRecalled?.Invoke();
if (_ownerSystem != null)
{
_ownerSystem.UnregisterLantern(this);
}
OnLanternRecalled?.Invoke();
OnLanternRecalled = null;
// 2. 禁用碰撞体,开始渐隐