Updates to PlayerController in examples

This commit is contained in:
MrGadget1024 2021-10-16 14:05:13 -04:00
parent 53e526c08e
commit 66b50c97c1
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ void OnValidate()
characterController = GetComponent<CharacterController>(); characterController = GetComponent<CharacterController>();
characterController.enabled = false; characterController.enabled = false;
GetComponent<Rigidbody>().isKinematic = false; GetComponent<Rigidbody>().isKinematic = true;
GetComponent<NetworkTransform>().clientAuthority = true; GetComponent<NetworkTransform>().clientAuthority = true;
} }

View File

@ -17,7 +17,7 @@ void OnValidate()
characterController = GetComponent<CharacterController>(); characterController = GetComponent<CharacterController>();
characterController.enabled = false; characterController.enabled = false;
GetComponent<Rigidbody>().isKinematic = false; GetComponent<Rigidbody>().isKinematic = true;
GetComponent<NetworkTransform>().clientAuthority = true; GetComponent<NetworkTransform>().clientAuthority = true;
} }

View File

@ -16,7 +16,7 @@ void OnValidate()
characterController = GetComponent<CharacterController>(); characterController = GetComponent<CharacterController>();
characterController.enabled = false; characterController.enabled = false;
GetComponent<Rigidbody>().isKinematic = false; GetComponent<Rigidbody>().isKinematic = true;
GetComponent<NetworkTransform>().clientAuthority = true; GetComponent<NetworkTransform>().clientAuthority = true;
} }