Exemplo n.º 1
0
 public void playSound(PowerupSounds soundType)
 {
     if (bSoundEnabled)
     {
         asPowerupSounds[(int)soundType].Play();
     }
 }
Exemplo n.º 2
0
 public bool isPlaying(PowerupSounds sound)
 {
     if (asPowerupSounds[(int)sound].isPlaying)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 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;
    }
Exemplo n.º 4
0
	public bool isPlaying (PowerupSounds sound)
	{
		if (asPowerupSounds [(int)sound].isPlaying)
			return true;
		else
			return false;
	}
Exemplo n.º 5
0
	public void stopSound (PowerupSounds soundType)
	{
		asPowerupSounds [(int)soundType].Stop ();
	}
Exemplo n.º 6
0
	public void playSound (PowerupSounds soundType)
	{
		if (bSoundEnabled)
			asPowerupSounds [(int)soundType].Play ();
	}
Exemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     inst = this;
 }
Exemplo n.º 8
0
 public void stopSound(PowerupSounds soundType)
 {
     asPowerupSounds[(int)soundType].Stop();
 }
Exemplo n.º 9
0
 // Use this for initialization
 void Start()
 {
     inst = this;
 }