void Start()
{
GetComponent<CharacterMovement>().enabled = false;
GetComponent<CharacterRotation>().enabled = false;
if (IsLocalPlayer)
{
//Make the camera start following this character
Camera.main.GetComponent<CameraDispatcher>().SetCurrentCharacterTarget(cameraPointer);
//GetComponent<CharacterMovement>().enabled = true;
//GetComponent<CharacterRotation>().enabled = true;
}
if (isServer)
{
GetComponent<CharacterMovement>().enabled = true;
GetComponent<CharacterRotation>().enabled = true;
}
}