public static void PlayGetFreeCoinsSound(this ButtonAudioBehaviour target) { if (CurrentUserInfo.IsSoundEnabled) { target.GetComponent <AudioSource>().Play(); } }
public static void PlayButtonClickedSound(this ButtonAudioBehaviour target) { if (CurrentUserInfo.IsSoundEnabled) { target.GetComponent <AudioSource>().PlayEvenIfDestroyed(); } }