mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: clientAuthority access (#2779)
Provide the same interface access for runtime changes like the NetworkTransform class.
This commit is contained in:
parent
7bd65c2d9b
commit
d2ee4979f7
@ -10,7 +10,7 @@ public class NetworkRigidbody : NetworkBehaviour
|
||||
[SerializeField] internal Rigidbody target = null;
|
||||
|
||||
[Tooltip("Set to true if moves come from owner client, set to false if moves always come from server")]
|
||||
[SerializeField] bool clientAuthority = false;
|
||||
public bool clientAuthority = false;
|
||||
|
||||
[Header("Velocity")]
|
||||
|
||||
|
@ -9,7 +9,7 @@ public class NetworkRigidbody2D : NetworkBehaviour
|
||||
[SerializeField] internal Rigidbody2D target = null;
|
||||
|
||||
[Tooltip("Set to true if moves come from owner client, set to false if moves always come from server")]
|
||||
[SerializeField] bool clientAuthority = false;
|
||||
public bool clientAuthority = false;
|
||||
|
||||
[Header("Velocity")]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user