예제 #1
0
 public static void PlayGetFreeCoinsSound(this ButtonAudioBehaviour target)
 {
     if (CurrentUserInfo.IsSoundEnabled)
     {
         target.GetComponent <AudioSource>().Play();
     }
 }
예제 #2
0
 public static void PlayButtonClickedSound(this ButtonAudioBehaviour target)
 {
     if (CurrentUserInfo.IsSoundEnabled)
     {
         target.GetComponent <AudioSource>().PlayEvenIfDestroyed();
     }
 }