com.puzzlescapegames.services 1.1.3 → 1.1.4

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.
@@ -32,7 +32,12 @@ namespace PuzzlescapeGames.Services.AudioService
32
32
  {
33
33
  CreateMusic().Mute( trigger );
34
34
  }
35
-
35
+
36
+ public void PauseMusic( bool trigger )
37
+ {
38
+ CreateMusic().Pause( trigger );
39
+ }
40
+
36
41
  public void PlaySound( AudioClip clip )
37
42
  {
38
43
  CreateSound().PlayOnce( clip );
@@ -57,6 +57,18 @@ namespace PuzzlescapeGames.Services.AudioService
57
57
  Source.mute = trigger;
58
58
  }
59
59
 
60
+ public void Pause( bool trigger )
61
+ {
62
+ if ( trigger )
63
+ {
64
+ Source.Pause();
65
+ }
66
+ else
67
+ {
68
+ Source.UnPause();
69
+ }
70
+ }
71
+
60
72
  public void Loop( bool trigger )
61
73
  {
62
74
  isLoop = trigger;
@@ -12,5 +12,6 @@ namespace PuzzlescapeGames.Services.AudioService
12
12
  void SetSoundVolume( float value );
13
13
 
14
14
  void MuteMusic( bool trigger );
15
+ void PauseMusic( bool trigger );
15
16
  }
16
17
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name" : "com.puzzlescapegames.services",
3
3
  "displayName" : "Puzzlescape Games Services",
4
- "version" : "1.1.3",
4
+ "version" : "1.1.4",
5
5
  "author" : "Puzzlescape Games",
6
6
  "description" : "Common services.",
7
7
  "repository": {