toolsmax0_COMP3911_Game/Assets/Scripts/Raw/UI/DoorTrigger.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class DoorTrigger : MonoBehaviour
{


    private AudioSource Audio;

    void Awake()
    {
        Audio = GetComponent<AudioSource>();
    }
    void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.tag == "Player")
        {
            Audio.Play();
        }
    }

}