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
18 lines
422 B
using System; |
|
using UnityEngine; |
|
using Random = UnityEngine.Random; |
|
|
|
namespace UnityStandardAssets.Effects |
|
{ |
|
public class SmokeParticles : MonoBehaviour |
|
{ |
|
public AudioClip[] extinguishSounds; |
|
|
|
|
|
private void Start() |
|
{ |
|
GetComponent<AudioSource>().clip = extinguishSounds[Random.Range(0, extinguishSounds.Length)]; |
|
GetComponent<AudioSource>().Play(); |
|
} |
|
} |
|
}
|
|
|