The AudioSource attached to this GameObject (Read Only). (Null if there is none attached).
#pragma strict public class Example extends MonoBehaviour { function Start() { gameObject.GetComponent.<AudioSource>().Play(); } }
using UnityEngine;
public class Example : MonoBehaviour { void Start() { gameObject.GetComponent<AudioSource>().Play(); } }