Skip to content

Commit 72166a8

Browse files
authored
Merge pull request #3 from uon-projects/paranoia-effect
Bug-Fix for Paranoia effect
2 parents 8cdc8a3 + 2ec5f64 commit 72166a8

File tree

13 files changed

+1775
-283
lines changed

13 files changed

+1775
-283
lines changed

Assets/Materials/Flare/FlareBody.mat

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Material:
99
m_PrefabAsset: {fileID: 0}
1010
m_Name: FlareBody
1111
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12-
m_ShaderKeywords: _EMISSION _NORMALMAP
12+
m_ShaderKeywords: _EMISSION
1313
m_LightmapFlags: 1
1414
m_EnableInstancingVariants: 0
1515
m_DoubleSidedGI: 0
@@ -20,7 +20,7 @@ Material:
2020
serializedVersion: 3
2121
m_TexEnvs:
2222
- _BumpMap:
23-
m_Texture: {fileID: 2800000, guid: 8677871a5f891fb4e9fa94aa3fc18c18, type: 3}
23+
m_Texture: {fileID: 0}
2424
m_Scale: {x: 1, y: 1}
2525
m_Offset: {x: 0, y: 0}
2626
- _DetailAlbedoMap:
@@ -40,7 +40,7 @@ Material:
4040
m_Scale: {x: 1, y: 1}
4141
m_Offset: {x: 0, y: 0}
4242
- _MainTex:
43-
m_Texture: {fileID: 2800000, guid: 164a8ee6cbd11bc44ae0cebbbe950bd1, type: 3}
43+
m_Texture: {fileID: 2800000, guid: 90f42daabc551494eae07b434d71dfdb, type: 3}
4444
m_Scale: {x: 1, y: 1}
4545
m_Offset: {x: 0, y: 0}
4646
- _MetallicGlossMap:
@@ -75,7 +75,7 @@ Material:
7575
- _UVSec: 0
7676
- _ZWrite: 1
7777
m_Colors:
78-
- _Color: {r: 1, g: 1, b: 1, a: 1}
78+
- _Color: {r: 0.5849056, g: 0.18485224, b: 0.18485224, a: 1}
7979
- _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
8080
- _EmissionColorUI: {r: 1, g: 1, b: 1, a: 1}
8181
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}

Assets/Materials/Flare/FlareBodyGlas.mat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Material:
99
m_PrefabAsset: {fileID: 0}
1010
m_Name: FlareBodyGlas
1111
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12-
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION
13-
m_LightmapFlags: 1
12+
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON
13+
m_LightmapFlags: 4
1414
m_EnableInstancingVariants: 0
1515
m_DoubleSidedGI: 0
1616
m_CustomRenderQueue: 3000
@@ -76,7 +76,7 @@ Material:
7676
- _UVSec: 0
7777
- _ZWrite: 0
7878
m_Colors:
79-
- _Color: {r: 1, g: 1, b: 1, a: 0.4117647}
79+
- _Color: {r: 1, g: 1, b: 1, a: 0.92156863}
8080
- _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
8181
- _EmissionColorUI: {r: 1, g: 1, b: 1, a: 1}
8282
- _SpecColor: {r: 0.5, g: 0.5, b: 0.5, a: 0}

Assets/Plugins/Loading Screen/Content/Scripts/Internal/Global/bl_SceneLoaderUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static bl_SceneLoader GetLoader
1313
{
1414
get
1515
{
16-
bl_SceneLoader sl = GameObject.FindObjectOfType<bl_SceneLoader>();
16+
var sl = GameObject.FindObjectOfType<bl_SceneLoader>();
1717
if(sl == null)
1818
{
1919
Debug.LogWarning("Don't have any scene loader in this scene.");

Assets/Plugins/Scripts/Items/FlareManage.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class FlareManage : MonoBehaviour
3232
[Range(1, 20)]
3333
public int area = 2;
3434
public GameObject player;
35-
public ParanoiaSystem paranoiaSystem;
35+
public ParanoiaHolder paranoiaHolder;
3636

3737
[Header("Mesh Render")]
3838
public MeshRenderer objMeshRenderer;
@@ -47,7 +47,7 @@ public class FlareManage : MonoBehaviour
4747
private int _time;
4848
private string _id;
4949
private Rigidbody _mRigidbody;
50-
private bool _isParanoiaSystemNotNull;
50+
private bool _isParanoiaHolderNotNull;
5151

5252
private void Start()
5353
{
@@ -56,7 +56,7 @@ private void Start()
5656
objMeshRenderer.shadowCastingMode = ShadowCastingMode.Off;
5757
_id = AudioInstance.ID();
5858
_mRigidbody = GetComponent<Rigidbody>();
59-
_isParanoiaSystemNotNull = paranoiaSystem != null;
59+
_isParanoiaHolderNotNull = paranoiaHolder != null;
6060
}
6161

6262
private void Update()
@@ -88,9 +88,9 @@ private void Update()
8888
var position = flareTransform.position;
8989
var flarePos = new Vector3(position.x, playerPosition.y, position.z);
9090
var distance = Vector3.Distance(playerPosition, flarePos);
91-
if (_isParanoiaSystemNotNull)
91+
if (_isParanoiaHolderNotNull)
9292
{
93-
paranoiaSystem.InsideSafeArea = distance <= area * 2;
93+
paranoiaHolder.InsideSafeArea = distance <= area * 2;
9494
}
9595
if (_time < seconds * 60) return;
9696

@@ -104,9 +104,9 @@ private void Update()
104104
return;
105105
}
106106

107-
if (_isParanoiaSystemNotNull)
107+
if (_isParanoiaHolderNotNull)
108108
{
109-
paranoiaSystem.InsideSafeArea = false;
109+
paranoiaHolder.InsideSafeArea = false;
110110
}
111111

112112
if (!_isAttached) return;

Assets/Plugins/Scripts/Override/VSync.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ private void Update()
2020
{
2121
// VSync must be disabled
2222
QualitySettings.vSyncCount = 0;
23-
// Set the frame rate to 45
24-
Application.targetFrameRate = 45;
23+
// Set the frame rate to 60 on all devices
24+
Application.targetFrameRate = 60;
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)