1.修复Updatement中遗漏的bug2.对生成进行了一定的优化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user