摘要: 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... 阅读全文
posted @ 2012-06-28 10:31 小牛仔 阅读(2630) 评论(0) 推荐(0) 编辑