Make outer walls transparent
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -3072,6 +3072,11 @@ PrefabInstance:
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: -7511558181221131132, guid: 0c8bb8ae79767d54cb8f825f82322c06,
|
||||
type: 3}
|
||||
propertyPath: m_Materials.Array.size
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 919132149155446097, guid: 0c8bb8ae79767d54cb8f825f82322c06,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
|
||||
@@ -42,6 +42,7 @@ public class CameraSystem : MonoBehaviour
|
||||
private float _zoomAmount = 3f;
|
||||
private float _targetFieldOfView = 60f;
|
||||
private CinemachineTransposer _cinemachineTransposer;
|
||||
private Bounds _worldBounds;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
@@ -56,6 +57,13 @@ public class CameraSystem : MonoBehaviour
|
||||
|
||||
public void ResetToPlayerPosition()
|
||||
{
|
||||
Renderer[] renderers = FindObjectsOfType<Renderer>();
|
||||
|
||||
_worldBounds = renderers[0].bounds;
|
||||
|
||||
for (int i = 1; i < renderers.Length; ++i)
|
||||
_worldBounds.Encapsulate(renderers[i].bounds);
|
||||
|
||||
transform.position = Player.Instance.transform.position;
|
||||
}
|
||||
|
||||
@@ -84,9 +92,6 @@ public class CameraSystem : MonoBehaviour
|
||||
{
|
||||
EdgeScrollingMovement();
|
||||
}
|
||||
//HandleCameraZoom_MoveY();
|
||||
//HandleCameraZoom_FOV();
|
||||
//HandleCameraZoom_MoveForward();
|
||||
|
||||
}
|
||||
|
||||
@@ -140,6 +145,7 @@ public class CameraSystem : MonoBehaviour
|
||||
|
||||
private void HandleCameraMovement(Vector2 inputDir)
|
||||
{
|
||||
|
||||
Vector3 moveDir = transform.forward * inputDir.y + transform.right * inputDir.x;
|
||||
transform.position += moveDir * _moveSpeed * Time.deltaTime;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user