Add check for destroyed gameobjects
This commit is contained in:
parent
dc185b4f22
commit
879a715b09
@ -327,6 +327,9 @@ namespace Passer.Humanoid {
|
||||
bool grabHandle = false;
|
||||
bool grabHandleInSocket = false;
|
||||
foreach (Collider collider in colliders) {
|
||||
if (collider == null)
|
||||
continue;
|
||||
|
||||
GameObject obj;
|
||||
Rigidbody objRigidbody = collider.attachedRigidbody;
|
||||
if (objRigidbody != null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user