Commit 3115b46 1 parent 0117f21 commit 3115b46 Copy full SHA for 3115b46
File tree 3 files changed +7
-17
lines changed
Assets/Scripts/PlayerScripts/PlayerHealth
3 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -53,9 +53,7 @@ public void Damage(float damage)
53
53
/// </summary>
54
54
/// <param name="value">Health value, changed based on damage taken</param>
55
55
public void SetHealth ( float value )
56
- {
57
- if ( isLocalPlayer && ( value < currentHealth ) && ControlContext . Instance . Active )
58
- Vibration . Vibrate ( ) ;
56
+ {
59
57
currentHealth = value ;
60
58
this . eventHealthChanged ? . Invoke ( currentHealth , maxHealth ) ;
61
59
}
@@ -77,4 +75,4 @@ private void Die()
77
75
}
78
76
79
77
}
80
- }
78
+ }
Original file line number Diff line number Diff line change 40
40
"com.unity.modules.vr" : " 1.0.0" ,
41
41
"com.unity.modules.wind" : " 1.0.0" ,
42
42
"com.unity.modules.xr" : " 1.0.0" ,
43
- "com.veriorpies.parrelsync" : " https://github.com/VeriorPies/ParrelSync.git?path=/ParrelSync" ,
44
- "com.benoitfreslon.unity.vibrations" : " 1.0.0"
45
- },
46
- "scopedRegistries" : [
47
- {
48
- "name" : " OpenUPM" ,
49
- "url" : " https://package.openupm.com" ,
50
- "scopes" : [
51
- " com.benoitfreslon.unity.vibrations"
52
- ]
53
- }
54
- ]
43
+ "com.veriorpies.parrelsync" : " https://github.com/VeriorPies/ParrelSync.git?path=/ParrelSync"
44
+ }
55
45
}
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ PlayerSettings:
124
124
16:10 : 1
125
125
16:9 : 1
126
126
Others : 1
127
- bundleVersion : 2.0
127
+ bundleVersion : 2.4
128
128
preloadedAssets :
129
129
- {fileID: 0}
130
130
- {fileID: 0}
@@ -152,6 +152,8 @@ PlayerSettings:
152
152
- {fileID: 0}
153
153
- {fileID: 0}
154
154
- {fileID: 0}
155
+ - {fileID: 0}
156
+ - {fileID: 0}
155
157
metroInputSource : 0
156
158
wsaTransparentSwapchain : 0
157
159
m_HolographicPauseOnTrackingLoss : 1
You can’t perform that action at this time.
0 commit comments