Audio does not play when the game restarts

Hi , I am new to Unity.

  1. I have created audioclip and audiosource variables and set source in the awake function.
  2. I have set source.playoneshot in the onTriggerEnter function.
  3. The audio clips work when the game starts.

However , once the game restarts , the audio clip does not play.

What could be the reason for this ?
Again , sorry guys but I am new to unity.

Hi , @FlaSh-G ,

I am using the following function to reset:

public void Reset()




I have attached this script to a button created in the UI.