public void playSound (soundclip sc) { if (PlayerPrefs.GetString("FX") == "FALSE") return; AudioClip ac = audioClipMapper [sc]; source.PlayOneShot (ac,0.5f); //Debug.Log("Playsound eiei"); }
public void playSound (soundclip sc, float volumn) { if (PlayerPrefs.GetString("FX") == "FALSE") return; //Debug.Log (sc + " " + volumn); AudioClip ac = audioClipMapper [sc]; source.PlayOneShot (ac,volumn); //Debug.Log("Playsound eiei"); }