- Home /
Question by
Kitare_T · Apr 30, 2021 at 03:57 AM ·
c#bugunity 2dsound effects
Problem with sound
In my script after you press button, appears a window with sound, but when i close window there is no sound public void ShowWindow(GameObject panel) { if (!panel.activeSelf) { panel.SetActive(true); } ClickSound.PlayOneShot(ClickSound.clip); } public void HideWindow(GameObject panel) { ClickSound.PlayOneShot(ClickSound.clip); if (panel.activeSelf) { panel.SetActive(false); } }
Comment
Your answer
Follow this Question
Related Questions
Problem with random chess piece moveplate generator 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
2D Platformer Bug 0 Answers
Help with bombs destroying colliders in different position from gameobject 0 Answers