com.puzzlescapegames.services 1.1.9 → 1.2.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.
|
@@ -59,6 +59,12 @@ namespace PuzzlescapeGames.Services.AudioService
|
|
|
59
59
|
IsPlaying = false;
|
|
60
60
|
Source.clip = null;
|
|
61
61
|
}
|
|
62
|
+
|
|
63
|
+
public void Rewind()
|
|
64
|
+
{
|
|
65
|
+
Source.time = 0;
|
|
66
|
+
Source.Stop();
|
|
67
|
+
}
|
|
62
68
|
|
|
63
69
|
public Tween DoVolume( float target, float duration )
|
|
64
70
|
{
|
|
@@ -87,7 +93,7 @@ namespace PuzzlescapeGames.Services.AudioService
|
|
|
87
93
|
isLoop = trigger;
|
|
88
94
|
Source.loop = trigger;
|
|
89
95
|
}
|
|
90
|
-
|
|
96
|
+
|
|
91
97
|
private void StartPlayDelay( float playTime )
|
|
92
98
|
{
|
|
93
99
|
PlayDelay( playTime ).Forget();
|
|
@@ -20,7 +20,7 @@ namespace PuzzlescapeGames.Services.AudioService
|
|
|
20
20
|
Audio.PlayLoop( clip );
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
public void
|
|
23
|
+
public void Changed( AudioClip clip, float fadeOut = 0.33f, float fadeIn = 0.33f )
|
|
24
24
|
{
|
|
25
25
|
_fade?.Kill();
|
|
26
26
|
|
|
@@ -44,22 +44,22 @@ namespace PuzzlescapeGames.Services.AudioService
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
public void
|
|
47
|
+
public void SetVolume( float value )
|
|
48
48
|
{
|
|
49
49
|
Audio.Source.volume = value;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
public Tween
|
|
52
|
+
public Tween DoVolume( float target, float duration )
|
|
53
53
|
{
|
|
54
54
|
return Audio.DoVolume( target, duration );
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
public void
|
|
57
|
+
public void Pause( bool trigger )
|
|
58
58
|
{
|
|
59
59
|
Audio.Pause( trigger );
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
public void
|
|
62
|
+
public void Mute( bool trigger )
|
|
63
63
|
{
|
|
64
64
|
Audio.Mute( trigger );
|
|
65
65
|
}
|