Skip to content

Commit

Permalink
merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
fernando-cortez committed Jan 15, 2025
2 parents 03c7a24 + 93db2a7 commit e460e1b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Assets/Prefabs/GameCam/CMCameraPrefab.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ MonoBehaviour:
Enabled: 1
Input:
LegacyInput: Mouse ScrollWheel
LegacyGain: 5
LegacyGain: -50
CancelDeltaTime: 0
InputValue: 0
Driver:
Expand Down
8 changes: 4 additions & 4 deletions Assets/Scripts/CameraUtils/CameraController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Unity.BossRoom.CameraUtils
public class CameraController : MonoBehaviour
{
const string k_CMCameraTag = "CMCamera";

void Start()
{
AttachCamera();
Expand All @@ -17,7 +17,7 @@ void AttachCamera()
{
var cinemachineCameraGameObject = GameObject.FindGameObjectWithTag(k_CMCameraTag);
Assert.IsNotNull(cinemachineCameraGameObject);

var cinemachineCamera = cinemachineCameraGameObject.GetComponent<CinemachineCamera>();
Assert.IsNotNull(cinemachineCamera, "CameraController.AttachCamera: Couldn't find gameplay CinemachineCamera");

Expand All @@ -27,10 +27,10 @@ void AttachCamera()
cinemachineCamera.Follow = transform;
cinemachineCamera.LookAt = transform;
}

var cinemachineOrbitalFollow = cinemachineCameraGameObject.GetComponent<CinemachineOrbitalFollow>();
Assert.IsNotNull(cinemachineOrbitalFollow, "CameraController.AttachCamera: Couldn't find gameplay CinemachineOrbitalFollow");

if (cinemachineOrbitalFollow != null)
{
// default rotation / zoom
Expand Down
2 changes: 1 addition & 1 deletion Assets/UniversalRenderPipelineGlobalSettings.asset
Git LFS file not shown

0 comments on commit e460e1b

Please sign in to comment.