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;
|