Skip to content

Instantly share code, notes, and snippets.

View david-alejandro-reyes-milian's full-sized avatar
🏠
Working from home

David Reyes david-alejandro-reyes-milian

🏠
Working from home
View GitHub Profile
@david-alejandro-reyes-milian
david-alejandro-reyes-milian / AudioManager.cs
Created July 10, 2022 17:46
Easy to use AudioManager. Creates an audio source connected to an audio output to enable easy audio mixing.
using System;
using System.Collections.Generic;
using UnityEngine;
public class AudioManager : MonoBehaviour
{
private static AudioManager _instance;
public Sound[] sounds;
private readonly Dictionary<string, Sound> _soundDictionary = new Dictionary<string, Sound>();