-
-
Save juniorxsound/e6b5ea883671efa5a570ee20465af5cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SoundProps : MonoBehaviour { | |
public static Dictionary<string, float[]> props = new Dictionary<string, float[]>(); | |
private void Awake() | |
{ | |
buildSoundProp("cgPong", 0.3f); | |
buildSoundProp("brassbowl", 0.5f); | |
buildSoundProp("crotale", 1.0f); | |
buildSoundProp("gran", 0.3f); | |
buildSoundProp("choir", 0.5f); | |
buildSoundProp("chords", 1.0f); | |
buildSoundProp("muted_bass", 0.3f); | |
buildSoundProp("chime", 0.5f); | |
buildSoundProp("mk", 1.0f); | |
} | |
private void buildSoundProp(string name, float volume) | |
{ | |
float[] tempArray = new float[4]; | |
tempArray[0] = volume; | |
props.Add(name, tempArray); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment