mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Updates to PlayerController in examples
This commit is contained in:
parent
53e526c08e
commit
66b50c97c1
@ -16,7 +16,7 @@ void OnValidate()
|
||||
characterController = GetComponent<CharacterController>();
|
||||
|
||||
characterController.enabled = false;
|
||||
GetComponent<Rigidbody>().isKinematic = false;
|
||||
GetComponent<Rigidbody>().isKinematic = true;
|
||||
GetComponent<NetworkTransform>().clientAuthority = true;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ void OnValidate()
|
||||
characterController = GetComponent<CharacterController>();
|
||||
|
||||
characterController.enabled = false;
|
||||
GetComponent<Rigidbody>().isKinematic = false;
|
||||
GetComponent<Rigidbody>().isKinematic = true;
|
||||
GetComponent<NetworkTransform>().clientAuthority = true;
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ void OnValidate()
|
||||
characterController = GetComponent<CharacterController>();
|
||||
|
||||
characterController.enabled = false;
|
||||
GetComponent<Rigidbody>().isKinematic = false;
|
||||
GetComponent<Rigidbody>().isKinematic = true;
|
||||
GetComponent<NetworkTransform>().clientAuthority = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user