mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Prediction: catch errors early
This commit is contained in:
parent
59ec51600a
commit
b11a13795b
@ -88,6 +88,7 @@ public class PredictedRigidbody : NetworkBehaviour
|
||||
void Awake()
|
||||
{
|
||||
rb = GetComponent<Rigidbody>();
|
||||
if (rb == null) throw new InvalidOperationException($"Prediction: {name} is missing a Rigidbody component.");
|
||||
}
|
||||
|
||||
protected virtual void MoveRigidbody(GameObject destination)
|
||||
|
Loading…
Reference in New Issue
Block a user