Seven is the number.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
422 B

  1. using System;
  2. using UnityEngine;
  3. using Random = UnityEngine.Random;
  4. namespace UnityStandardAssets.Effects
  5. {
  6. public class SmokeParticles : MonoBehaviour
  7. {
  8. public AudioClip[] extinguishSounds;
  9. private void Start()
  10. {
  11. GetComponent<AudioSource>().clip = extinguishSounds[Random.Range(0, extinguishSounds.Length)];
  12. GetComponent<AudioSource>().Play();
  13. }
  14. }
  15. }