Make outer walls transparent

This commit is contained in:
2024-03-15 12:57:21 +02:00
parent d2d0fab588
commit d30dba25db
11 changed files with 27 additions and 15 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5
View File
@@ -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
+9 -3
View File
@@ -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;
}
+1 -1
View File
@@ -8,7 +8,7 @@
"com.unity.formats.fbx": "5.1.0",
"com.unity.ide.visualstudio": "2.0.22",
"com.unity.inputsystem": "1.7.0",
"com.unity.render-pipelines.universal": "16.0.4",
"com.unity.render-pipelines.universal": "16.0.5",
"com.unity.test-framework": "1.3.9",
"com.unity.timeline": "1.8.6",
"com.unity.ugui": "2.0.0",
+10 -9
View File
@@ -34,11 +34,12 @@
"url": "https://packages.unity.com"
},
"com.unity.burst": {
"version": "1.8.11",
"version": "1.8.12",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.mathematics": "1.2.1"
"com.unity.mathematics": "1.2.1",
"com.unity.modules.jsonserialize": "1.0.0"
},
"url": "https://packages.unity.com"
},
@@ -119,7 +120,7 @@
"url": "https://packages.unity.com"
},
"com.unity.render-pipelines.core": {
"version": "16.0.4",
"version": "16.0.5",
"depth": 1,
"source": "builtin",
"dependencies": {
@@ -132,18 +133,18 @@
}
},
"com.unity.render-pipelines.universal": {
"version": "16.0.4",
"version": "16.0.5",
"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.mathematics": "1.2.1",
"com.unity.burst": "1.8.9",
"com.unity.render-pipelines.core": "16.0.4",
"com.unity.shadergraph": "16.0.4"
"com.unity.render-pipelines.core": "16.0.5",
"com.unity.shadergraph": "16.0.5"
}
},
"com.unity.rendering.light-transport": {
"version": "1.0.0",
"version": "1.0.1",
"depth": 2,
"source": "builtin",
"dependencies": {
@@ -160,11 +161,11 @@
"url": "https://packages.unity.com"
},
"com.unity.shadergraph": {
"version": "16.0.4",
"version": "16.0.5",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.render-pipelines.core": "16.0.4",
"com.unity.render-pipelines.core": "16.0.5",
"com.unity.searcher": "4.9.2"
}
},
+2 -2
View File
@@ -1,2 +1,2 @@
m_EditorVersion: 2023.2.2f1
m_EditorVersionWithRevision: 2023.2.2f1 (dfe9eb92cac5)
m_EditorVersion: 2023.2.13f1
m_EditorVersionWithRevision: 2023.2.13f1 (70197a359f36)