- Home /
Question by
aminkhosravi007 · Apr 22, 2020 at 08:32 AM ·
unity 5sounds
Problem With AudioSource
Hello. I defined a public void for my button that is locked and if you have enough coins you can buy that character (Button). it includes GetComponent for the sound I attached to the script. When in Menu and OnClick I attach the script to my button and I purchase that character, the sound doesn't work. When I add AudioSource in OnClick, it playes when I click on that button, even thought I set the sound to be played on character purchased.
Comment