Change Music
So, I have the audio array, I get a song, but how to I add it to an audio source?
public class MusicManager : MonoBehaviour {
public AudioClip[] music;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void Awake()
{
music = Resources.LoadAll<AudioClip>;
foreach (AudioClip clip in music)
{
}
}
}
Comment
Your answer
Follow this Question
Related Questions
There is no way to actually download unity 1 Answer
How to make an animation? 0 Answers
Script conflict 0 Answers
Issue with loading scenes with buttons 1 Answer
Renew License 1 Answer