fix: clientAuthority access (#2779)

Provide the same interface access for runtime changes like the NetworkTransform class.
This commit is contained in:
Alexander Klaiber 2021-06-14 15:42:59 +02:00 committed by GitHub
parent 7bd65c2d9b
commit d2ee4979f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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")]

View File

@ -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")]