mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Prediction: fix wrong null check
This commit is contained in:
parent
d4f55d8761
commit
4e8890967d
@ -247,7 +247,7 @@ protected virtual void CreateGhosts()
|
|||||||
// cache components to avoid GetComponent calls at runtime
|
// cache components to avoid GetComponent calls at runtime
|
||||||
physicsCopyRigidbody = physicsCopy.GetComponent<Rigidbody>();
|
physicsCopyRigidbody = physicsCopy.GetComponent<Rigidbody>();
|
||||||
physicsCopyCollider = physicsCopy.GetComponent<Collider>();
|
physicsCopyCollider = physicsCopy.GetComponent<Collider>();
|
||||||
if (physicsGhostRigidbody == null) throw new Exception("SeparatePhysics: couldn't find final Rigidbody.");
|
if (physicsCopyRigidbody == null) throw new Exception("SeparatePhysics: couldn't find final Rigidbody.");
|
||||||
if (physicsCopyCollider == null) throw new Exception("SeparatePhysics: couldn't find final Collider.");
|
if (physicsCopyCollider == null) throw new Exception("SeparatePhysics: couldn't find final Collider.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user