// Start is called before the first frame update void Start() { //Makes sure that there's an audio clip on the audio source, and makes sure it's playable. audioData = GetComponent <AudioSource>(); audioData.clip = Pavement; audioData.Play(); audioData.loop = true; audioData.Pause(); //Gets the crouch & zone component from the parent. cro = GetComponentInParent <Crouch>(); zone = GetComponentInParent <ZoneStatusUpdater>(); }
// Start is called before the first frame update void Start() { //Gets the ZoneStatuses script Zone = GetComponent <ZoneStatusUpdater>(); }