This commit is contained in:
CortexCore
2024-04-06 16:33:32 +08:00
parent 637bbef7d2
commit 37e7fcea51
42 changed files with 597 additions and 149 deletions

View File

@@ -26,7 +26,16 @@ namespace BITKit.OpenWorld
var enabledCollider = arg2 is 0;
foreach (var x in colliders)
{
x.enabled = enabledCollider;
try
{
x.enabled = enabledCollider;
}
catch (Exception e)
{
BIT4Log.Warning<ColliderChunkObject>(gameObject.name);
BIT4Log.LogException(e);
}
}
}
#if UNITY_EDITOR