Skip to content

Commit 8cdc8a3

Browse files
committed
minor bug-fixes
1 parent f6aa970 commit 8cdc8a3

File tree

6 files changed

+422
-8
lines changed

6 files changed

+422
-8
lines changed

Assets/Plugins/Scripts/Menu/OpeningCinematic.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ private void Update()
4949
if (!_animationruntime) return;
5050
Player.SetActive(true);
5151
CinemaCam.SetActive(false);
52+
Destroy(CinemaCam);
5253
HUD.SetActive(true);
5354
Map.SetActive(true);
5455
Pause.SetActive(true);

Assets/Plugins/Scripts/Override/VSync.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ public class VSync : MonoBehaviour
1818
/// </summary>
1919
private void Update()
2020
{
21-
// Sync framerate to monitors refresh rate
22-
QualitySettings.vSyncCount = 1;
21+
// VSync must be disabled
22+
QualitySettings.vSyncCount = 0;
23+
// Set the frame rate to 45
24+
Application.targetFrameRate = 45;
2325
}
2426
}
2527
}

Assets/Plugins/Scripts/Paranoia/ParanoiaSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private void Start()
101101
/// </summary>
102102
private void Update()
103103
{
104-
if (player == null) return;
104+
if (!_isPlayerLightNotNull) return;
105105
if (Pause.IsPaused) return;
106106

107107
switch (numberOfEntrances)

Assets/Prefabs/ParanoiaTrigger.prefab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Transform:
2929
m_GameObject: {fileID: 7864808882382050593}
3030
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
3131
m_LocalPosition: {x: 0, y: 0, z: 0}
32-
m_LocalScale: {x: 1, y: 1, z: 1}
32+
m_LocalScale: {x: 1, y: 1, z: 20}
3333
m_Children: []
3434
m_Father: {fileID: 0}
3535
m_RootOrder: 0

Assets/Scenes/Level-01 Scene.unity

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173175,6 +173175,11 @@ PrefabInstance:
173175173175
propertyPath: m_LocalScale.y
173176173176
value: 9.272888
173177173177
objectReference: {fileID: 0}
173178+
- target: {fileID: 807883775339780604, guid: 1a179d9a0e96dec40af970485cf82667,
173179+
type: 3}
173180+
propertyPath: m_LocalScale.z
173181+
value: 0.1
173182+
objectReference: {fileID: 0}
173178173183
- target: {fileID: 1747315307096817345, guid: 1a179d9a0e96dec40af970485cf82667,
173179173184
type: 3}
173180173185
propertyPath: m_Enabled

0 commit comments

Comments
 (0)