void Update() { if (isLocalPlayer) { player.MoveCam(); CharacterController controller = player.controller; Cmd_SendPositionToServer(controller.transform.position); Cmd_SendRotationToServer(controller.transform.rotation); } else { LerpPos(); LerpRot(); } }
// Update is called once per frame void Update() { player.MoveCam(); }