private void OnDestroy() { if (!enabled) { return; } SunVox.sv_close_slot(0); SunVox.sv_deinit(); }
private void OnDestroy() { if (!enabled) { return; } foreach (Slot slot in Enum.GetValues(typeof(Slot))) { SunVox.sv_close_slot((int)slot); } SunVox.sv_deinit(); }
public static void CloseSlot(int slot) { Debug.Log("SunVox: close slot " + slot); openSlots.Remove(slot); SunVox.sv_close_slot(slot); }