fr.jeanf.universal.player 0.8.8 → 0.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,7 +42,7 @@ namespace jeanf.universalplayer
42
42
  [SerializeField] private VolumeProfile URPVolumeProfile;
43
43
  [SerializeField] private Volume postProcessVolume;
44
44
  private static Volume staticPostProcessVolume;
45
- private ColorAdjustments colorAdjustments;
45
+ private static ColorAdjustments colorAdjustments;
46
46
 
47
47
  private static MotionHandle _fadeHandle;
48
48
  private static bool _isCurrentlyFading = false;
@@ -51,9 +51,6 @@ namespace jeanf.universalplayer
51
51
  [Header("Listening On")] [SerializeField]
52
52
  private BoolFloatEventChannelSO fadeOutChannelSO;
53
53
 
54
- [SerializeField] private VoidEventChannelSO SetVolumeTo_InitialSetupSO;
55
- [SerializeField] private VoidEventChannelSO SetVolumeTo_HeadInWallSetupSO;
56
-
57
54
  public delegate void TogglePpeDelegate(bool state);
58
55
 
59
56
  public static TogglePpeDelegate TogglePPE;
@@ -87,9 +84,6 @@ namespace jeanf.universalplayer
87
84
 
88
85
  private void Subscribe()
89
86
  {
90
- SetVolumeTo_InitialSetupSO.OnEventRaised += SetVolumeTo_InitialSetup;
91
- SetVolumeTo_HeadInWallSetupSO.OnEventRaised += SetVolumeTo_HeadInWallSetup;
92
-
93
87
  inputBinding.Enable();
94
88
  inputBinding.performed += _ => SwitchFadeState();
95
89
  fadeOutChannelSO.OnEventRaised += FadeValue;
@@ -98,9 +92,6 @@ namespace jeanf.universalplayer
98
92
 
99
93
  private void Unsubscribe()
100
94
  {
101
- SetVolumeTo_InitialSetupSO.OnEventRaised -= SetVolumeTo_InitialSetup;
102
- SetVolumeTo_HeadInWallSetupSO.OnEventRaised -= SetVolumeTo_HeadInWallSetup;
103
-
104
95
  if (_shaderMaterial)_shaderMaterial.SetColor(FadeColor, color);
105
96
  inputBinding.performed -= null;
106
97
  fadeOutChannelSO.OnEventRaised -= FadeValue;
@@ -109,12 +100,12 @@ namespace jeanf.universalplayer
109
100
  TogglePPE -= ChangePostProcessing;
110
101
  }
111
102
 
112
- public void SetVolumeTo_InitialSetup()
103
+ public static void SetVolumeTo_InitialSetup()
113
104
  {
114
105
  colorAdjustments.colorFilter.value = Color.black;
115
106
  colorAdjustments.saturation.value = 0;
116
107
  }
117
- public void SetVolumeTo_HeadInWallSetup()
108
+ public static void SetVolumeTo_HeadInWallSetup()
118
109
  {
119
110
  colorAdjustments.colorFilter.value = Color.white;
120
111
  colorAdjustments.saturation.value = -100;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fr.jeanf.universal.player",
3
3
 
4
- "version": "0.8.8",
4
+ "version": "0.8.9",
5
5
 
6
6
  "displayName": "Universal Player",
7
7
  "description": "This package contains a universal player working in URP & HDRP for Mouse+Keyboard or VR",