The basics of playing a sound are very straightforward in Unity (simply add an AudioSource component to a GameObject and link it to an AudioClip sound file). For simple sound effects, such as short, one-off plays of pickup confirmation noises, it's useful to have a single AudioSource component that you can then reuse to play different sound effects. That is what we'll do in this recipe.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia