void Start() { AudioMusic stageMusic = AudioManager.GetMFX(); if (_loopMain != null && stageMusic) { stageMusic.SetClip(_loopMain, _intro); } }
public void PlayMusic(AudioMusic audioMusic) { audioSource.clip = audioMusic.songToPlay; audioSource.Play(); }
public void playMusic(AudioMusic audioMusic) { audiosource.clip = audioMusic.soundToPlay; audiosource.Play(); }
public static void SetMFX(AudioMusic mFx) { _mFx = mFx; }
void Start() { AudioMusic.PlayMenuMusic(); camera = GetComponent <Camera>(); }