Added UI to Furnance, fixed carry and drag obj and added fish
This commit is contained in:
@@ -16,6 +16,7 @@ public sealed class FirstPersonCameraController : NetworkBehaviour, IPlayerSyste
|
||||
private float pitch;
|
||||
private bool isInitialized;
|
||||
|
||||
public Camera PlayerCamera => playerCamera;
|
||||
public Transform AimTransform => playerCamera != null ? playerCamera.transform : transform;
|
||||
public Vector3 AimForward => AimTransform.forward;
|
||||
|
||||
@@ -38,6 +39,8 @@ public sealed class FirstPersonCameraController : NetworkBehaviour, IPlayerSyste
|
||||
if (!isLocalPlayer)
|
||||
return;
|
||||
|
||||
LocalPlayerCameraRegistry.Register(playerCamera);
|
||||
|
||||
if (playerRenderer != null)
|
||||
playerRenderer.enabled = false;
|
||||
|
||||
@@ -98,6 +101,7 @@ public sealed class FirstPersonCameraController : NetworkBehaviour, IPlayerSyste
|
||||
|
||||
if (IsOwner)
|
||||
{
|
||||
LocalPlayerCameraRegistry.Unregister(playerCamera);
|
||||
Cursor.lockState = CursorLockMode.None;
|
||||
Cursor.visible = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user