1.修复Updatement中遗漏的bug2.对生成进行了一定的优化

This commit is contained in:
2025-12-03 16:58:56 +08:00
parent c80d5140bc
commit 174a8c6df2
5 changed files with 56 additions and 31 deletions

View File

@@ -108,7 +108,16 @@ namespace Demo.Game
{
using (Profiler.BeginZone($"{type.Name}.ScriptUpdate"))
foreach (var item in items)
item.ScriptUpdate(currentTime, deltaTime, tickType);
{
try
{
item.ScriptUpdate(currentTime, deltaTime, tickType);
}
catch (Exception ex)
{
Debug.LogException(ex, item);
}
}
}
}
}