v10 全量评审:修复 TD-06 至 TD-12(InputReader 移除资产扫描回退 / EmergencySave 解除 LocalFileStorage 直接依赖 / AccessibilityManager 注册 IAccessibilityService / HUDController HP/SpringIcon SetActive 复用 / MovingPlatform 缓存 WaitForSeconds / RewardSO IRewardTarget 解耦 Quest←Player 依赖 / CrashReporter 频率限制崩溃日志)
This commit is contained in:
@@ -71,7 +71,12 @@ namespace BaseGames.World
|
||||
|
||||
private void Despawn()
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
// 若由对象池创建(PooledObject 存在),归还到池;否则直接停用(场景内静态放置的 Collectible)
|
||||
var po = GetComponent<Core.Pool.PooledObject>();
|
||||
if (po != null)
|
||||
po.ReturnToPool();
|
||||
else
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
// ── 运行时配置(由 CollectibleSpawner 在实例化后调用)────────────────
|
||||
|
||||
Reference in New Issue
Block a user