Unity歌曲切换

using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using DG.Tweening;
using UnityEngine;
using UnityEngine.Serialization;
using UnityEngine.UI;

public class AudioControl : MonoBehaviour
{
   
    public static AudioControl instance = null;
    public AudioSource musicSource;
    public Queue<AudioSource> effectSource=new Queue<AudioSource>();

    [Header("背景音乐")]
    public AudioClip backgroundMusic;
    public AudioClip mapMusic;
    public AudioClip[] ChineseStyleMapMusic = new AudioClip[3];
    public AudioClip[] ChineseStyleBattleMusic = new AudioClip[3];
    public AudioClip battleMusic;
    private void Awake()
    {
   
        instance = this;
        for(int i = 1; i <= 4; i

你可能感兴趣的:(unity,unity,c#,游戏引擎)