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
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 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,
|
- target: {fileID: 919132149155446097, guid: 0c8bb8ae79767d54cb8f825f82322c06,
|
||||||
type: 3}
|
type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ public class CameraSystem : MonoBehaviour
|
|||||||
private float _zoomAmount = 3f;
|
private float _zoomAmount = 3f;
|
||||||
private float _targetFieldOfView = 60f;
|
private float _targetFieldOfView = 60f;
|
||||||
private CinemachineTransposer _cinemachineTransposer;
|
private CinemachineTransposer _cinemachineTransposer;
|
||||||
|
private Bounds _worldBounds;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
@@ -56,6 +57,13 @@ public class CameraSystem : MonoBehaviour
|
|||||||
|
|
||||||
public void ResetToPlayerPosition()
|
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;
|
transform.position = Player.Instance.transform.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,9 +92,6 @@ public class CameraSystem : MonoBehaviour
|
|||||||
{
|
{
|
||||||
EdgeScrollingMovement();
|
EdgeScrollingMovement();
|
||||||
}
|
}
|
||||||
//HandleCameraZoom_MoveY();
|
|
||||||
//HandleCameraZoom_FOV();
|
|
||||||
//HandleCameraZoom_MoveForward();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,6 +145,7 @@ public class CameraSystem : MonoBehaviour
|
|||||||
|
|
||||||
private void HandleCameraMovement(Vector2 inputDir)
|
private void HandleCameraMovement(Vector2 inputDir)
|
||||||
{
|
{
|
||||||
|
|
||||||
Vector3 moveDir = transform.forward * inputDir.y + transform.right * inputDir.x;
|
Vector3 moveDir = transform.forward * inputDir.y + transform.right * inputDir.x;
|
||||||
transform.position += moveDir * _moveSpeed * Time.deltaTime;
|
transform.position += moveDir * _moveSpeed * Time.deltaTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"com.unity.formats.fbx": "5.1.0",
|
"com.unity.formats.fbx": "5.1.0",
|
||||||
"com.unity.ide.visualstudio": "2.0.22",
|
"com.unity.ide.visualstudio": "2.0.22",
|
||||||
"com.unity.inputsystem": "1.7.0",
|
"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.test-framework": "1.3.9",
|
||||||
"com.unity.timeline": "1.8.6",
|
"com.unity.timeline": "1.8.6",
|
||||||
"com.unity.ugui": "2.0.0",
|
"com.unity.ugui": "2.0.0",
|
||||||
|
|||||||
@@ -34,11 +34,12 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.burst": {
|
"com.unity.burst": {
|
||||||
"version": "1.8.11",
|
"version": "1.8.12",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"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"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
@@ -119,7 +120,7 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.render-pipelines.core": {
|
"com.unity.render-pipelines.core": {
|
||||||
"version": "16.0.4",
|
"version": "16.0.5",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -132,18 +133,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"com.unity.render-pipelines.universal": {
|
"com.unity.render-pipelines.universal": {
|
||||||
"version": "16.0.4",
|
"version": "16.0.5",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.mathematics": "1.2.1",
|
"com.unity.mathematics": "1.2.1",
|
||||||
"com.unity.burst": "1.8.9",
|
"com.unity.burst": "1.8.9",
|
||||||
"com.unity.render-pipelines.core": "16.0.4",
|
"com.unity.render-pipelines.core": "16.0.5",
|
||||||
"com.unity.shadergraph": "16.0.4"
|
"com.unity.shadergraph": "16.0.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"com.unity.rendering.light-transport": {
|
"com.unity.rendering.light-transport": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"depth": 2,
|
"depth": 2,
|
||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -160,11 +161,11 @@
|
|||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
"com.unity.shadergraph": {
|
"com.unity.shadergraph": {
|
||||||
"version": "16.0.4",
|
"version": "16.0.5",
|
||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "builtin",
|
"source": "builtin",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.render-pipelines.core": "16.0.4",
|
"com.unity.render-pipelines.core": "16.0.5",
|
||||||
"com.unity.searcher": "4.9.2"
|
"com.unity.searcher": "4.9.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
m_EditorVersion: 2023.2.2f1
|
m_EditorVersion: 2023.2.13f1
|
||||||
m_EditorVersionWithRevision: 2023.2.2f1 (dfe9eb92cac5)
|
m_EditorVersionWithRevision: 2023.2.13f1 (70197a359f36)
|
||||||
|
|||||||
Reference in New Issue
Block a user