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

	}
Esempio n. 2
0
	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");

	}