Exemple #1
0
 public void playSound(PowerupSounds soundType)
 {
     if (bSoundEnabled)
     {
         asPowerupSounds[(int)soundType].Play();
     }
 }
Exemple #2
0
 public bool isPlaying(PowerupSounds sound)
 {
     if (asPowerupSounds[(int)sound].isPlaying)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #3
0
    /*
     *	FUNCTION: Stops all sounds except background music
     */
    public void stopAllSounds()
    {
        for (int i = 0; i < CharacterSounds.GetValues(typeof(CharacterSounds)).Length; i++)
        {
            asCharacterSounds [i].Stop();
        }
        for (int i = 0; i < PowerupSounds.GetValues(typeof(PowerupSounds)).Length; i++)
        {
            asPowerupSounds [i].Stop();
        }
        for (int i = 0; i < MenuSounds.GetValues(typeof(MenuSounds)).Length; i++)
        {
            asMenuSounds [i].Stop();
        }
        for (int i = 0; i < EnemySounds.GetValues(typeof(EnemySounds)).Length; i++)
        {
            asEnemySounds [i].Stop();
        }

        bFootstepsPlaying = false;
    }
	public bool isPlaying (PowerupSounds sound)
	{
		if (asPowerupSounds [(int)sound].isPlaying)
			return true;
		else
			return false;
	}
	public void stopSound (PowerupSounds soundType)
	{
		asPowerupSounds [(int)soundType].Stop ();
	}
	public void playSound (PowerupSounds soundType)
	{
		if (bSoundEnabled)
			asPowerupSounds [(int)soundType].Play ();
	}
Exemple #7
0
 // Use this for initialization
 void Start()
 {
     inst = this;
 }
Exemple #8
0
 public void stopSound(PowerupSounds soundType)
 {
     asPowerupSounds[(int)soundType].Stop();
 }
Exemple #9
0
 // Use this for initialization
 void Start()
 {
     inst = this;
 }