In this code:
var DoorSound : AudioClip;
function OnControllerColliderHit (hit : ControllerColliderHit)
{
if(hit.gameObject.tag == "doorL")
AudioSource.PlayClipAtPoint(DoorSound,transform.position);
}
I need to assign the variable the sound file’s name whch is “dooreffect”, the variable is named ‘doorsound’
how do I assign it?