Музыка меня отменила
This commit is contained in:
1 parent
485d54f272
commit
a1c2c5fd18
2 files changed
+3
-3
No files matched your search
@@ -212,8 +212,8 @@ namespace Code.App.AppStates
|
|||||||
Context.AudioService.OnDispatcherEnded -= _gameplayPanel.CloseDispatcher;
|
Context.AudioService.OnDispatcherEnded -= _gameplayPanel.CloseDispatcher;
|
||||||
|
|
||||||
Context.InputService.DisableMap(ActionMappings.Gameplay);
|
Context.InputService.DisableMap(ActionMappings.Gameplay);
|
||||||
Context.AudioService.GladlyAskToStopMusic(MusicType.Action, callback: Context.AudioFactory.ReleaseActionMusic);
|
Context.AudioService.GladlyAskToStopMusic(MusicType.Action, time: 0f, callback: Context.AudioFactory.ReleaseActionMusic);
|
||||||
Context.AudioService.GladlyAskToStopMusic(MusicType.Peaceful, callback: Context.AudioFactory.ReleasePeacefulMusic);
|
Context.AudioService.GladlyAskToStopMusic(MusicType.Peaceful, time: 0f, callback: Context.AudioFactory.ReleasePeacefulMusic);
|
||||||
Context.AudioFactory.ReleaseCourier();
|
Context.AudioFactory.ReleaseCourier();
|
||||||
Context.AudioFactory.ReleaseDispatcher();
|
Context.AudioFactory.ReleaseDispatcher();
|
||||||
Context.AudioFactory.ReleaseEnemies();
|
Context.AudioFactory.ReleaseEnemies();
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ namespace Code.Audio
|
|||||||
public async UniTaskVoid GladlyAskToStopMusic(MusicType musicType,
|
public async UniTaskVoid GladlyAskToStopMusic(MusicType musicType,
|
||||||
AudioSnapshotState audioSnapshotState = AudioSnapshotState.None, float time = 1f, Action callback = null)
|
AudioSnapshotState audioSnapshotState = AudioSnapshotState.None, float time = 1f, Action callback = null)
|
||||||
{
|
{
|
||||||
// TransitToSnapshot(audioSnapshotState, time);
|
//TransitToSnapshot(audioSnapshotState, time);
|
||||||
|
|
||||||
await UniTask.WaitForSeconds(time);
|
await UniTask.WaitForSeconds(time);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user