com.tunnelsnakes.audiosystem 1.0.0 → 1.1.0
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.
|
@@ -17,8 +17,8 @@ public class Sound : ScriptableObject {
|
|
|
17
17
|
[SerializeField] private float _pitchRange = 0f;
|
|
18
18
|
[SerializeField] private bool _loop = false;
|
|
19
19
|
|
|
20
|
-
protected virtual Observable<bool> IsAudioEnabled => GameData.AudioSettings.SoundsEnabled;
|
|
21
|
-
protected virtual Observable<float> GlobalVolume => GameData.AudioSettings.SoundsVolume;
|
|
20
|
+
protected virtual Observable<bool> IsAudioEnabled => GameData.Instance.AudioSettings.SoundsEnabled;
|
|
21
|
+
protected virtual Observable<float> GlobalVolume => GameData.Instance.AudioSettings.SoundsVolume;
|
|
22
22
|
|
|
23
23
|
public virtual AudioPresenter Play() {
|
|
24
24
|
AudioPresenter presenter = GetPresenter();
|
|
@@ -4,7 +4,7 @@ using UnityEngine;
|
|
|
4
4
|
|
|
5
5
|
public abstract class Vibration : ScriptableObject {
|
|
6
6
|
protected const string MENU_FOLDER = "Vibration/";
|
|
7
|
-
protected bool CanVibrate => GameData.AudioSettings.VibrationsEnabled.Value;
|
|
7
|
+
protected bool CanVibrate => GameData.Instance.AudioSettings.VibrationsEnabled.Value;
|
|
8
8
|
|
|
9
9
|
public abstract void Vibrate();
|
|
10
10
|
}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
"references": [
|
|
4
4
|
"GUID:ec99747e8eb95ee488f6cfa3a8e647b9",
|
|
5
5
|
"GUID:041029188fa88c54f9efffc039b6a1c9",
|
|
6
|
-
"GUID:865b414a121ed594e91db2e09f65d38c"
|
|
6
|
+
"GUID:865b414a121ed594e91db2e09f65d38c",
|
|
7
|
+
"GUID:c5c32a628b9233446bcce7f67a49d1f4"
|
|
7
8
|
],
|
|
8
9
|
"includePlatforms": [],
|
|
9
10
|
"excludePlatforms": [],
|
packages/package.json
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "com.tunnelsnakes.audiosystem",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"displayName": "AudioSystem",
|
|
5
|
-
"description": "Audio and vibrations",
|
|
6
|
-
"license": "proprietary",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"registry": "https://registry.npmjs.org"
|
|
9
|
-
},
|
|
10
|
-
"samples": [],
|
|
11
|
-
"author": {
|
|
12
|
-
"name": "Tunnel Snakes",
|
|
13
|
-
"email": "",
|
|
14
|
-
"url": ""
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "",
|
|
18
|
-
"url": ""
|
|
19
|
-
},
|
|
20
|
-
"hideInEditor": false
|
|
1
|
+
{
|
|
2
|
+
"name": "com.tunnelsnakes.audiosystem",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"displayName": "AudioSystem",
|
|
5
|
+
"description": "Audio and vibrations",
|
|
6
|
+
"license": "proprietary",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org"
|
|
9
|
+
},
|
|
10
|
+
"samples": [],
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Tunnel Snakes",
|
|
13
|
+
"email": "",
|
|
14
|
+
"url": ""
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "",
|
|
18
|
+
"url": ""
|
|
19
|
+
},
|
|
20
|
+
"hideInEditor": false,
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"com.tunnelsnakes.base": "1.5.3"
|
|
23
|
+
}
|
|
21
24
|
}
|