摘要:
using UnityEngine;using System.Collections;public class SoundSwitch : MonoBehaviour { public AudioSource as1; public AudioSource as2; public AudioClip[] a1; // Use this for initialization void Start () { //代码关键点1(可选):增加两个AudioSource到GameObject this.gameObject.AddComponent("Au... 阅读全文