2022-01-08 11:43:38 +00:00
|
|
|
/// @description Clean up all resources when the game is about to end.
|
|
|
|
|
|
|
|
/* Destroy sound instances first: */
|
|
|
|
// sndInst.Stop();
|
|
|
|
// sndInst.Destroy();
|
|
|
|
// sndInst = undefined;
|
|
|
|
|
|
|
|
/* Only then destroy static sounds: */
|
|
|
|
// snd.Destroy();
|
|
|
|
// snd = undefined;
|
|
|
|
|
|
|
|
/* And only then, destroy effect chains */
|
|
|
|
effChain.Destroy();
|
|
|
|
effChain = undefined;
|
|
|
|
|
|
|
|
/* Finish up the system */
|
2021-10-29 00:26:01 +00:00
|
|
|
FAudioGMS_Destroy();
|