音訊類 - 播放音訊
using UnityEngine;
public class Audio : MonoBehaviour {
AudioSource audioSource;
AudioClip audioClip;
void Start() {
audioClip = (AudioClip)Resources.Load("Audio/Soundtrack");
audioSource.clip = audioClip;
if (!audioSource.isPlaying) audioSource.Play();
}